You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of Firefox 140 all the major browsers now implement the Cookie Store API. I'd like to implement the API and will be using this issue to track the implementation process
Steps:
Get/GetAll/Set/Delete
Update cookie processing to handle nameless cookies
Change Events and Subscriptions
Cookie Domain needs to be tracked if it was explicitly set or if implied for storage
@sebsebmc are you still interested in contributing this web feature? I don't see any open PRs for it and am not sure what the status is. If you are no longer interested, we can find somebody else to work on it as well. I might be able to if that helps.
Sorry about the lack of updates, life has kept me busy. If I remember correctly, the main blocker I was running into was that some of the cookie store tests were testing for nameless cookies, which because of the cookie libraries we use resulted in errors that would time out the test runner.
I investigated potentially transforming those cookies but ended up finding that there is discussion amongst the spec writers over removing nameless cookies or switching their representation. httpwg/http-extensions#2229
Hopefully, I should have some time to work on this again in the new year, though any ideas for dealing with nameless cookies in the interim would be great
Activity
arihant2math commentedon Jul 31, 2025
New spec url: https://cookiestore.spec.whatwg.org/
sebsebmc commentedon Jul 31, 2025
Yeah and annoyingly they renamed the WPT tests folder as well from
cookie-storetocookiestorescript: initial CookieStore implementation (#37968)
script: Do not include fragments when comparing URLs in `CookieStore` (…
TimvdLippe commentedon Dec 23, 2025
@sebsebmc are you still interested in contributing this web feature? I don't see any open PRs for it and am not sure what the status is. If you are no longer interested, we can find somebody else to work on it as well. I might be able to if that helps.
sebsebmc commentedon Dec 23, 2025
Sorry about the lack of updates, life has kept me busy. If I remember correctly, the main blocker I was running into was that some of the cookie store tests were testing for nameless cookies, which because of the cookie libraries we use resulted in errors that would time out the test runner.
I investigated potentially transforming those cookies but ended up finding that there is discussion amongst the spec writers over removing nameless cookies or switching their representation. httpwg/http-extensions#2229
Hopefully, I should have some time to work on this again in the new year, though any ideas for dealing with nameless cookies in the interim would be great
sebsebmc commentedon Dec 23, 2025
It definitely feels like something where some strategic amount of non-compliance may be necessary to make forward progress
TimvdLippe commentedon Dec 25, 2025
I think it's fine to continue implementation as much as we can while the specification settles. Seems like a minor part of the API to me.
Implement CookieStoreManager and expose ServiceWorkerRegistration.coo…
Implement CookieStoreManager and expose ServiceWorkerRegistration.coo…
skyz1 commentedon Oct 29, 2026
I will work on the change event.