mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
38 lines
1005 B
Plaintext
38 lines
1005 B
Plaintext
#import <DOM/EventTarget.idl>
|
|
#import <DOM/EventHandler.idl>
|
|
#import <HTML/Window.idl>
|
|
#import <ServiceWorker/ServiceWorkerGlobalScope.idl>
|
|
|
|
[GenerateToValue]
|
|
dictionary CookieListItem {
|
|
USVString name;
|
|
USVString value;
|
|
};
|
|
|
|
typedef sequence<CookieListItem> CookieList;
|
|
|
|
dictionary CookieStoreGetOptions {
|
|
USVString name;
|
|
USVString url;
|
|
};
|
|
|
|
// https://cookiestore.spec.whatwg.org/#cookiestore
|
|
[Exposed=(ServiceWorker,Window), SecureContext]
|
|
interface CookieStore : EventTarget {
|
|
Promise<CookieListItem?> get(USVString name);
|
|
Promise<CookieListItem?> get(optional CookieStoreGetOptions options = {});
|
|
|
|
Promise<CookieList> getAll(USVString name);
|
|
};
|
|
|
|
// https://cookiestore.spec.whatwg.org/#Window
|
|
[SecureContext]
|
|
partial interface Window {
|
|
[SameObject] readonly attribute CookieStore cookieStore;
|
|
};
|
|
|
|
// https://cookiestore.spec.whatwg.org/#ServiceWorkerGlobalScope
|
|
partial interface ServiceWorkerGlobalScope {
|
|
[SameObject] readonly attribute CookieStore cookieStore;
|
|
};
|