Re: [w3ctag/design-reviews] Cookie Store API (#469)

So what I am suggesting is the following

Change this
```
 Promise<void> set(USVString name, USVString value,
                    optional CookieStoreSetOptions options = {});
 Promise<void> set(CookieStoreSetExtraOptions options);

dictionary CookieStoreSetOptions {
  DOMTimeStamp? expires = null;
  USVString? domain = null;
  USVString path = "/";
  CookieSameSite sameSite = "strict";
};

dictionary CookieStoreSetExtraOptions : CookieStoreSetOptions {
  required USVString name;
  required USVString value;
};
```

to this:

```idl
  Promise<void> set(USVString name, USVString value);
  Promise<void> set(CookieListItemInit cookieListItemInit);

dictionary CookieListItemInit {
  required USVString name;
  USVString value;
  USVString? domain = null;
  USVString path = "/";
  DOMTimeStamp? expires = null;
  CookieSameSite sameSite = "strict";
};
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/469#issuecomment-633879420

Received on Tuesday, 26 May 2020 08:17:00 UTC