ExtendableCookieChangeEvent.webidl (1090B)
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/#ExtendableCookieChangeEvent 8 */ 9 10 [Exposed=ServiceWorker, Pref="dom.cookieStore.enabled"] 11 interface ExtendableCookieChangeEvent : ExtendableEvent { 12 constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict = {}); 13 // TODO: Use FrozenArray once available. (Bug 1236777) 14 // [SameObject] readonly attribute FrozenArray<CookieListItem> changed; 15 // [SameObject] readonly attribute FrozenArray<CookieListItem> deleted; 16 [Frozen, Cached, Constant] 17 readonly attribute sequence<CookieListItem> changed; 18 [Frozen, Cached, Constant] 19 readonly attribute sequence<CookieListItem> deleted; 20 }; 21 22 dictionary ExtendableCookieChangeEventInit : ExtendableEventInit { 23 CookieList changed; 24 CookieList deleted; 25 };