Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / dom / webidl / StorageEvent.webidl
blob44836d2196e4235e2d0771c3626300fd0dea929d
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/.
5  *
6  * Interface for a client side storage. See
7  * http://dev.w3.org/html5/webstorage/#the-storage-event
8  * for more information.
9  *
10  * Event sent to a window when a storage area changes.
11  */
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.
23   [Throws]
24   void initStorageEvent(DOMString type,
25                         boolean canBubble,
26                         boolean cancelable,
27                         DOMString? key,
28                         DOMString? oldValue,
29                         DOMString? newValue,
30                         DOMString? url,
31                         Storage? storageArea);
34 dictionary StorageEventInit : EventInit
36   DOMString? key = null;
37   DOMString? oldValue = null;
38   DOMString? newValue = null;
39   DOMString url = "";
40   Storage? storageArea = null;