mirror of
https://github.com/servo/servo.git
synced 2025-09-08 05:58:20 +01:00
Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d
This commit is contained in:
parent
c45192614c
commit
775b784f79
2144 changed files with 58115 additions and 29658 deletions
|
@ -7,13 +7,13 @@ enum CookieSameSite {
|
|||
};
|
||||
|
||||
dictionary CookieListItem {
|
||||
USVString name;
|
||||
required USVString name;
|
||||
USVString value;
|
||||
USVString? domain;
|
||||
USVString path;
|
||||
DOMTimeStamp? expires;
|
||||
boolean secure;
|
||||
CookieSameSite sameSite;
|
||||
USVString? domain = null;
|
||||
USVString path = "/";
|
||||
DOMTimeStamp? expires = null;
|
||||
boolean secure = true;
|
||||
CookieSameSite sameSite = "strict";
|
||||
};
|
||||
|
||||
typedef sequence<CookieListItem> CookieList;
|
||||
|
@ -50,6 +50,14 @@ enum CookieMatchType {
|
|||
"starts-with"
|
||||
};
|
||||
|
||||
dictionary CookieStoreDeleteOptions {
|
||||
required USVString name;
|
||||
USVString? domain = null;
|
||||
USVString path = "/";
|
||||
boolean secure = true;
|
||||
CookieSameSite sameSite = "strict";
|
||||
};
|
||||
|
||||
dictionary CookieStoreGetOptions {
|
||||
USVString name;
|
||||
USVString url;
|
||||
|
@ -57,31 +65,34 @@ dictionary CookieStoreGetOptions {
|
|||
};
|
||||
|
||||
dictionary CookieStoreSetOptions {
|
||||
USVString name;
|
||||
USVString value;
|
||||
DOMTimeStamp? expires = null;
|
||||
USVString domain;
|
||||
USVString? domain = null;
|
||||
USVString path = "/";
|
||||
boolean secure = true;
|
||||
boolean httpOnly = false;
|
||||
CookieSameSite sameSite = "strict";
|
||||
};
|
||||
|
||||
dictionary CookieStoreSetExtraOptions : CookieStoreSetOptions {
|
||||
required USVString name;
|
||||
required USVString value;
|
||||
};
|
||||
|
||||
[
|
||||
Exposed=(ServiceWorker,Window),
|
||||
SecureContext
|
||||
] interface CookieStore : EventTarget {
|
||||
Promise<CookieList?> getAll(USVString name, optional CookieStoreGetOptions options);
|
||||
Promise<CookieList?> getAll(optional CookieStoreGetOptions options);
|
||||
|
||||
Promise<CookieListItem?> get(USVString name, optional CookieStoreGetOptions options);
|
||||
Promise<CookieListItem?> get(USVString name);
|
||||
Promise<CookieListItem?> get(optional CookieStoreGetOptions options);
|
||||
|
||||
Promise<void> set(USVString name, USVString value, optional CookieStoreSetOptions options);
|
||||
Promise<void> set(CookieStoreSetOptions options);
|
||||
Promise<CookieList> getAll(USVString name);
|
||||
Promise<CookieList> getAll(optional CookieStoreGetOptions options);
|
||||
|
||||
Promise<void> delete(USVString name, optional CookieStoreSetOptions options);
|
||||
Promise<void> delete(CookieStoreSetOptions 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);
|
||||
|
||||
|
@ -97,4 +108,5 @@ partial interface Window {
|
|||
|
||||
partial interface ServiceWorkerGlobalScope {
|
||||
[Replaceable, SameObject] readonly attribute CookieStore cookieStore;
|
||||
attribute EventHandler oncookiechange;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue