CookieChangeEvent.webidl (1040B)
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 * The origin of this IDL file is: 7 * https://wicg.github.io/cookie-store/#CookieChangeEvent 8 */ 9 10 [Exposed=Window, 11 SecureContext, 12 Pref="dom.cookieStore.enabled"] 13 interface CookieChangeEvent : Event { 14 constructor(DOMString type, optional CookieChangeEventInit eventInitDict = {}); 15 // TODO: Use FrozenArray once available. (Bug 1236777) 16 // [SameObject] readonly attribute FrozenArray<CookieListItem> changed; 17 // [SameObject] readonly attribute FrozenArray<CookieListItem> deleted; 18 [Frozen, Cached, Constant] 19 readonly attribute sequence<CookieListItem> changed; 20 [Frozen, Cached, Constant] 21 readonly attribute sequence<CookieListItem> deleted; 22 }; 23 24 dictionary CookieChangeEventInit : EventInit { 25 CookieList changed; 26 CookieList deleted; 27 };