Intent to ship: CookieStore API

84 views
Skip to first unread message

Andrea Marchesini

unread,
Jan 27, 2025, 11:35:31 AMJan 27
to dev-platform
As of Firefox 136, I intend to turn the CookieStore API on by default on all platforms. It has been developed behind the `dom.cookieStore.enabled` preference.

As discussed previously, we plan to ship an implementation that diverges from the official spec by the following points:

1. `CookieListItem` objects returned via the `CookieStore.get()`/`getAll()` methods only expose the name and value fields. This matches the current functionality of document.cookie.
2. We don't implement the `CookieStoreManager` and the `ServiceWorkerGlobalScope.oncookiechange` event handler, with its `ExtendableCookieChangeEvent` event because we don't want to spawn ServiceWorkers at any cookie change

Status in other browsers:
- Chrome: released since 2020
- Safari is actively working on releasing the same subset described above.

Bug to turn on by default: https://bugzilla.mozilla.org/show_bug.cgi?id=1937477
Standard: https://wicg.github.io/cookie-store/
This feature was previously discussed here: https://github.com/mozilla/standards-positions/issues/94

Valentin Gosu

unread,
Jan 28, 2025, 6:04:27 AMJan 28
to Andrea Marchesini, dev-platform
Thank you for all the great work you've put into shipping this, Andrea!
And many thanks to QA who went through a list of top sites known to use the CookieStore API and checked that it didn't cause any issues.

--
You received this message because you are subscribed to the Google Groups "dev-pl...@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dev-platform...@mozilla.org.
To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAEujSwy7NOsPJ0tj9bVpPpr204d_Ff9g1ab%2BtLDy30K3KSsj9g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages