2025-08-04 22:17:20 +03:00
|
|
|
#import <DOM/EventTarget.idl>
|
|
|
|
|
#import <DOM/EventHandler.idl>
|
|
|
|
|
#import <HTML/Window.idl>
|
|
|
|
|
#import <ServiceWorker/ServiceWorkerGlobalScope.idl>
|
|
|
|
|
|
2025-08-05 23:05:45 +03:00
|
|
|
[GenerateToValue]
|
|
|
|
|
dictionary CookieListItem {
|
|
|
|
|
USVString name;
|
|
|
|
|
USVString value;
|
|
|
|
|
};
|
|
|
|
|
|
2025-08-04 22:17:20 +03:00
|
|
|
// https://cookiestore.spec.whatwg.org/#cookiestore
|
|
|
|
|
[Exposed=(ServiceWorker,Window), SecureContext]
|
|
|
|
|
interface CookieStore : EventTarget {
|
2025-08-05 23:05:45 +03:00
|
|
|
Promise<CookieListItem?> get(USVString name);
|
2025-08-04 22:17:20 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
};
|