mirror of
https://github.com/servo/servo.git
synced 2025-07-12 01:43:43 +01:00
114 lines
2.9 KiB
Text
114 lines
2.9 KiB
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into reffy-reports
|
|
// (https://github.com/tidoust/reffy-reports)
|
|
// Source: Cookie Store API (https://wicg.github.io/cookie-store/)
|
|
|
|
[Exposed=(ServiceWorker,Window),
|
|
SecureContext]
|
|
interface CookieStore : EventTarget {
|
|
Promise<CookieListItem?> get(USVString name);
|
|
Promise<CookieListItem?> get(optional CookieStoreGetOptions options);
|
|
|
|
Promise<CookieList> getAll(USVString name);
|
|
Promise<CookieList> getAll(optional CookieStoreGetOptions options);
|
|
|
|
Promise<void> set(USVString name, USVString value,
|
|
optional CookieStoreSetOptions options);
|
|
Promise<void> set(CookieStoreSetExtraOptions options);
|
|
|
|
Promise<void> delete(USVString name);
|
|
Promise<void> delete(CookieStoreDeleteOptions options);
|
|
|
|
[Exposed=ServiceWorker]
|
|
Promise<void> subscribeToChanges(sequence<CookieStoreGetOptions> subscriptions);
|
|
|
|
[Exposed=ServiceWorker]
|
|
Promise<sequence<CookieStoreGetOptions>> getChangeSubscriptions();
|
|
|
|
[Exposed=Window]
|
|
attribute EventHandler onchange;
|
|
};
|
|
|
|
enum CookieMatchType {
|
|
"equals",
|
|
"starts-with"
|
|
};
|
|
|
|
dictionary CookieStoreGetOptions {
|
|
USVString name;
|
|
USVString url;
|
|
CookieMatchType matchType = "equals";
|
|
};
|
|
|
|
enum CookieSameSite {
|
|
"strict",
|
|
"lax",
|
|
"unrestricted"
|
|
};
|
|
|
|
dictionary CookieStoreSetOptions {
|
|
DOMTimeStamp? expires = null;
|
|
USVString? domain = null;
|
|
USVString path = "/";
|
|
boolean secure = true;
|
|
CookieSameSite sameSite = "strict";
|
|
};
|
|
|
|
dictionary CookieStoreSetExtraOptions : CookieStoreSetOptions {
|
|
required USVString name;
|
|
required USVString value;
|
|
};
|
|
|
|
dictionary CookieStoreDeleteOptions {
|
|
required USVString name;
|
|
USVString? domain = null;
|
|
USVString path = "/";
|
|
};
|
|
|
|
dictionary CookieListItem {
|
|
required USVString name;
|
|
USVString value;
|
|
USVString? domain = null;
|
|
USVString path = "/";
|
|
DOMTimeStamp? expires = null;
|
|
boolean secure = true;
|
|
CookieSameSite sameSite = "strict";
|
|
};
|
|
|
|
typedef sequence<CookieListItem> CookieList;
|
|
|
|
[Exposed=Window,
|
|
SecureContext,
|
|
Constructor(DOMString type, optional CookieChangeEventInit eventInitDict)]
|
|
interface CookieChangeEvent : Event {
|
|
readonly attribute CookieList changed;
|
|
readonly attribute CookieList deleted;
|
|
};
|
|
|
|
dictionary CookieChangeEventInit : EventInit {
|
|
CookieList changed;
|
|
CookieList deleted;
|
|
};
|
|
|
|
[Exposed=ServiceWorker,
|
|
Constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict)
|
|
] interface ExtendableCookieChangeEvent : ExtendableEvent {
|
|
readonly attribute CookieList changed;
|
|
readonly attribute CookieList deleted;
|
|
};
|
|
|
|
dictionary ExtendableCookieChangeEventInit : ExtendableEventInit {
|
|
CookieList changed;
|
|
CookieList deleted;
|
|
};
|
|
|
|
[SecureContext]
|
|
partial interface Window {
|
|
[Replaceable, SameObject] readonly attribute CookieStore cookieStore;
|
|
};
|
|
|
|
partial interface ServiceWorkerGlobalScope {
|
|
[Replaceable, SameObject] readonly attribute CookieStore cookieStore;
|
|
|
|
attribute EventHandler oncookiechange;
|
|
};
|