1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * Interface for a client side storage. See
7 * http://dev.w3.org/html5/webstorage/#the-storage-event
8 * for more information.
10 * Event sent to a window when a storage area changes.
13 [Constructor(DOMString type, optional StorageEventInit eventInitDict)]
14 interface StorageEvent : Event
16 readonly attribute DOMString? key;
17 readonly attribute DOMString? oldValue;
18 readonly attribute DOMString? newValue;
19 readonly attribute DOMString? url;
20 readonly attribute Storage? storageArea;
22 // Bug 1016053 - This is not spec compliant.
24 void initStorageEvent(DOMString type,
31 Storage? storageArea);
34 dictionary StorageEventInit : EventInit
36 DOMString? key = null;
37 DOMString? oldValue = null;
38 DOMString? newValue = null;
40 Storage? storageArea = null;