From 0b4eb673fe83072be2012d354894eaa559f58ff2 Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Wed, 9 Oct 2024 13:26:01 +0100 Subject: [PATCH] Add Firefox support information for the Cookie Store API (#36192) * Add Firefox support information for the Cookie Store API * Update files/en-us/mozilla/firefox/releases/132/index.md Co-authored-by: Vadim Makeev * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: Vadim Makeev * Make text consistent with main branch. * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/mozilla/firefox/experimental_features/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Vadim Makeev Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../firefox/experimental_features/index.md | 45 +++++++++++++++++++ .../mozilla/firefox/releases/132/index.md | 9 ++++ 2 files changed, 54 insertions(+) diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index 6f34c469d48ba1b..61c12de2e33be90 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -1290,6 +1290,51 @@ The [(?ims-ims:...)](/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Mo ## APIs +### Cookie Store API + +The [Cookie Store API](/en-US/docs/Web/API/Cookie_Store_API) is a modern, {{jsxref("Promise")}}-based method of managing cookies that does not block the event loop and does not rely on {{domxref("Document")}} (it can therefore be made available to [service workers](/en-US/docs/Web/API/Service_Worker_API)). A subset of the Cookie Store API has been implemented ([Firefox bug 1800882](https://bugzil.la/1800882)). This includes: + +- The [`CookieStore`](/en-US/docs/Web/API/CookieStore) interface, but `partitioned` is not included in return values. +- The [`CookieChangeEvent`](/en-US/docs/Web/API/CookieChangeEvent) interface, excluding `partitioned` properties. +- The [`Window.cookieStore`](/en-US/docs/Web/API/Window/cookieStore) property. +- The [`ServiceWorkerGlobalScope.cookieStore`](/en-US/docs/Web/API/ServiceWorkerGlobalScope/cookieStore) property. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Release channelVersion addedEnabled by default?
Nightly132Yes
Developer Edition132No
Beta132No
Release132No
Preference namedom.cookieStore.enabled
+ ### Fetch `keepalive` The global {{domxref('Window.fetch','fetch()')}} method has a [`keepalive`](/en-US/docs/Web/API/RequestInit#keepalive) initialization option. When `keepalive` is set to `true`, the browser will not abort the associated request if the page that initiated it is unloaded before the request is complete. diff --git a/files/en-us/mozilla/firefox/releases/132/index.md b/files/en-us/mozilla/firefox/releases/132/index.md index cfadd402994cafb..ac3bf1e511a774f 100644 --- a/files/en-us/mozilla/firefox/releases/132/index.md +++ b/files/en-us/mozilla/firefox/releases/132/index.md @@ -75,6 +75,15 @@ This article provides information about the changes in Firefox 132 that affect d These features are newly shipped in Firefox 132 but are disabled by default. To experiment with them, search for the appropriate preference on the `about:config` page and set it to `true`. You can find more such features on the [Experimental features](/en-US/docs/Mozilla/Firefox/Experimental_features) page. +- **Cookie Store API:** `dom.cookieStore.enabled`. + + The [Cookie Store API](/en-US/docs/Web/API/Cookie_Store_API) is a modern, {{jsxref("Promise")}}-based method of managing cookies that does not block the event loop and does not rely on {{domxref("Document")}} (it can therefore be made available to [service workers](/en-US/docs/Web/API/Service_Worker_API)). As of Firefox 132, a subset of the Cookie Store API has been implemented. ([Firefox bug 1800882](https://bugzil.la/1800882)). This includes: + + - The [`CookieStore`](/en-US/docs/Web/API/CookieStore) interface, but `partitioned` is not included in return values. + - The [`CookieChangeEvent`](/en-US/docs/Web/API/CookieChangeEvent) interface, excluding `partitioned` properties. + - The [`Window.cookieStore`](/en-US/docs/Web/API/Window/cookieStore) property. + - The [`ServiceWorkerGlobalScope.cookieStore`](/en-US/docs/Web/API/ServiceWorkerGlobalScope/cookieStore) property. + - **The `fetch()` `keepalive` option:** `dom.fetchKeepalive.enabled`. The global {{domxref('Window.fetch','fetch()')}} method has a [`keepalive`](/en-US/docs/Web/API/RequestInit#keepalive) initialization option. When `keepalive` is set to `true`, the browser will not abort the associated request if the page that initiated it is unloaded before the request is complete.