Bug 1643109 [wpt PR 23957] - Update interfaces/cookie-store.idl, a=testonly
authorautofoolip <auto@foolip.org>
Sat, 13 Jun 2020 03:29:31 +0000
changeset 536033 716fa68f98b9680ebdd9cdf2d8d28dff60954aa4
parent 536032 e5d705ba423a77ef0fa9891b9d98930c2c2be162
child 536034 0c00272d57662d8100f36cd278caf54727625994
push id119222
push userwptsync@mozilla.com
push dateWed, 17 Jun 2020 08:44:34 +0000
treeherderautoland@666a2f6a86f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1643109, 23957
milestone79.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1643109 [wpt PR 23957] - Update interfaces/cookie-store.idl, a=testonly Automatic update from web-platform-tests Update interfaces/cookie-store.idl (#23957) Source: https://github.com/tidoust/reffy-reports/blob/3ef9f83/ed/idl/cookie-store.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/696958118 -- wpt-commits: 555a1b3c9c3167a6b6d5a66e5cce70f77b9472c2 wpt-pr: 23957
testing/web-platform/tests/interfaces/cookie-store.idl
--- a/testing/web-platform/tests/interfaces/cookie-store.idl
+++ b/testing/web-platform/tests/interfaces/cookie-store.idl
@@ -7,19 +7,18 @@
  SecureContext]
 interface CookieStore : EventTarget {
   Promise<CookieListItem?> get(USVString name);
   Promise<CookieListItem?> get(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> set(USVString name, USVString value);
+  Promise<void> set(CookieInit options);
 
   Promise<void> delete(USVString name);
   Promise<void> delete(CookieStoreDeleteOptions options);
 
   [Exposed=Window]
   attribute EventHandler onchange;
 };
 
@@ -35,42 +34,39 @@ dictionary CookieStoreGetOptions {
 };
 
 enum CookieSameSite {
   "strict",
   "lax",
   "none"
 };
 
-dictionary CookieStoreSetOptions {
+dictionary CookieInit {
+  required USVString name;
+  required USVString value;
   DOMTimeStamp? expires = null;
   USVString? domain = null;
   USVString path = "/";
   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 name;
   USVString value;
-  USVString? domain = null;
-  USVString path = "/";
-  DOMTimeStamp? expires = null;
-  boolean secure = true;
-  CookieSameSite sameSite = "strict";
+  USVString? domain;
+  USVString path;
+  DOMTimeStamp? expires;
+  boolean secure;
+  CookieSameSite sameSite;
 };
 
 typedef sequence<CookieListItem> CookieList;
 
 [Exposed=(ServiceWorker,Window),
  SecureContext]
 interface CookieStoreManager {
   Promise<void> subscribe(sequence<CookieStoreGetOptions> subscriptions);