Project: chromium Issues People Development process History Sign in
New issue
Advanced search Search tips
Issue 729800 Async Cookies API
Starred by 5 users Project Member Reported by bsittler@chromium.org, Jun 5 Back to list
Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Launch-OWP
Launch-Accessibility: ----
Launch-Legal: ----
Launch-M-Approved: ----
Launch-M-Target: ----
Launch-Privacy: ----
Launch-Security: ----
Launch-Status: ----
Launch-Test: ----
Launch-UI: ----



Sign in to add a comment
IMPORTANT:
- This launch issue is used for standards and implementation tracking only.
It is NOT for Chrome approval regarding privacy, security, legal, UI,
testing,
accessibility etc.
- An overview of the different launch issues can be found here:
http://bit.ly/2ncKZfp
- If your feature requires security / privacy / etc approval then seek a PM
to guide you through the go/newchromefeature process
 
See http://www.chromium.org/blink#launch-process for an overview of the
Blink launch process, but note this doesn't cover security / privacy / etc
reviews as discussed above.
 
----------
 
Change description:
This adds an asynchronous cookie API to documents and Service Workers.
 
Changes to API surface:

- write (or "set") cookies by self.cookieStore.set
- delete (or "expire") cookies by self.cookieStore.delete
- read (or "get") script-visible cookies by self.cookieStore.get
 - ... including for specified in-scope request paths in service worker contexts
- monitor script-visible cookies for changes
 - ... using new self.CookieObserver(callback).observe in long-running script -
- contexts (e.g. document)
 - ... using addEventListener('cookiechange', handler) after registration during the InstallEvent in ephemeral service worker contexts by event.registerCookieChangeInterest
 - ... again including for script-supplied in-scope request paths in service worker contexts
 
See the explainer on WICG GitHub for further in-depth discussion of the proposal: https://github.com/WICG/async-cookies-api/blob/gh-pages/explainer.md
 
Links:
Public standards discussion: https://discourse.wicg.io/t/rfc-proposal-for-an-asynchronous-cookies-api/1652
Intent to implement discussion on blink-dev: https://groups.google.com/a/chromium.org/d/msg/blink-dev/gU-tSdjR4rA/hAYgmxiHCAAJ
 
Support in other browsers: None, yet
Internet Explorer: Not yet
Firefox: Not yet
Safari: Not yet
 

 
Comment 1 Deleted
This sounds really cool.

Could I suggest Blink>Storage>Cookies? The Blink>ServiceWorker triage process works best when core service worker bugs are filed against it, and I imagine we'll have more bugs filed as implementation of the Async Cookies API progresses.
Comment 3 by bsittler@chromium.org, Jun 20 (6 days ago)
Description: Show this description
Sign in to add a comment