Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Considering reducing the scope of the CookieStore API to match Firefox and Safari implementations #241

Open
bakulf opened this issue Nov 5, 2024 · 1 comment

Comments

@bakulf
Copy link

bakulf commented Nov 5, 2024

Safari and Firefox agreed on a subset of the CookieStore API to match only the document.cookie behavior. The subset is the following:

  1. Only cookie names and values are shared via the CookieStore.get()/getAll() methods. This way, we do not expose more than what document.cookie already offers. See When getting cookies only expose their name and value #238.
  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
  3. To follow up on the previous point, the CookieStore.onchange event handler is also exposed to ServiceWorkers.

This is currently implemented in Firefox and enabled in Nightly.

CC @annevk

@smaug----
Copy link

@inexorabletash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants