commit | 7184272ae9d627d338b89a5bdd3a1e496123a190 | [log] [tgz] |
---|---|---|
author | Victor Costan <pwnall@chromium.org> | Tue May 15 13:17:43 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 15 13:17:43 2018 |
tree | 65386268267829dd0146e99c00aed29d10343d00 | |
parent | ac8e3260ba877d954a83a855680b3d1868df29c6 [diff] |
Async Cookies: Change events in service workers. While installing, a service worker may call cookieStore.subscribeToChanges() to express interest in observing the changes to the list of cookies sent in a request to a specific URL. After the service worker becomes active, it is notified of changes to the cookies it is interested in via "cookiechange" events, which are dispatched to the service worker's global scope. This CL lays the last piece in the foundation of the Async Cookies API, which is currently gated by the Experimental Web Platform Features flag. This CL focuses on the core functionality and plumbing. Follow-up CLs will add more tests, fix the handling of edge cases, and improve performance. Bug: 729800 Change-Id: I52f2e550d7901d746ed1a973426d3181ea091147 Reviewed-on: https://chromium-review.googlesource.com/979334 Reviewed-by: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by: Joshua Bell <jsbell@chromium.org> Reviewed-by: Mark Pearson <mpearson@chromium.org> Commit-Queue: Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#558682}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .