blob: 3c8d1b09c7e613e177bbb83ad108df9e27b8870e [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Used to signal cookie changes to ServiceWorker contexts.
// https://github.com/WICG/async-cookies-api/blob/gh-pages/explainer.md
//
// See cookie_change_event.idl for the equivalent event in Document contexts.
[
Exposed=ServiceWorker,
RuntimeEnabled=CookieStore,
Constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict)
] interface ExtendableCookieChangeEvent : ExtendableEvent {
[MeasureAs=CookieStoreAPI] readonly attribute CookieList changed;
[MeasureAs=CookieStoreAPI] readonly attribute CookieList deleted;
};