blob: bb51c96b3bdb7182245991424f5d363d1a92c490 [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 Document contexts.
// https://github.com/WICG/async-cookies-api/blob/gh-pages/explainer.md
//
// See extendable_cookie_change_event.idl for the equivalent event in
// ServiceWorker contexts.
[
Exposed=Window,
OriginTrialEnabled=CookieStore,
SecureContext,
Constructor(DOMString type, optional CookieChangeEventInit eventInitDict)
] interface CookieChangeEvent : Event {
[MeasureAs=CookieStoreAPI] readonly attribute CookieList changed;
[MeasureAs=CookieStoreAPI] readonly attribute CookieList deleted;
};