tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CookieStoreManager.webidl (993B)


      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/#idl-index
      8 *
      9 * Copyright © 2024 the Contributors to the Cookie Store API Specification,
     10 * published by the Web Platform Incubator Community Group under the W3C
     11 * Community Contributor License Agreement (CLA). A human-readable summary is
     12 * available.
     13 */
     14 
     15 [Exposed=(ServiceWorker,Window),
     16 SecureContext,
     17 Pref="dom.cookieStore.enabled"]
     18 interface CookieStoreManager {
     19  [Throws]
     20  Promise<undefined> subscribe(sequence<CookieStoreGetOptions> subscriptions);
     21 
     22  [Throws]
     23  Promise<sequence<CookieStoreGetOptions>> getSubscriptions();
     24 
     25  [Throws]
     26  Promise<undefined> unsubscribe(sequence<CookieStoreGetOptions> subscriptions);
     27 };