diff options
author | falken <falken@chromium.org> | 2014-08-26 23:49:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-27 06:50:07 +0000 |
commit | 0b0c1c512f7a797a3f5ba679507109af87d12e1b (patch) | |
tree | 8653014139b73ba622487ab99c60601d278bc756 /DEPS | |
parent | 78e51a1e886c42d927c9e19329305b2dc2a4d94d (diff) | |
download | chromium_src-0b0c1c512f7a797a3f5ba679507109af87d12e1b.zip chromium_src-0b0c1c512f7a797a3f5ba679507109af87d12e1b.tar.gz chromium_src-0b0c1c512f7a797a3f5ba679507109af87d12e1b.tar.bz2 |
(Reland) Service Worker: Handle same-scope, new script registration
Reland of 2da192aff after:
- disabling some layout tests that need to be rebaselined
- landing 6cce6b78f "Decouple script_url from ServiceWorkerRegistration"
so Registration doesn't get in a weird state with a script_url that failed to
register
Before this patch, register() would delete an existing registration at
the scope if the script URL didn't match, and register a new one. This
overwriting creates a scenario where old tabs have a different
controller than new tabs, which the Service Worker spec avoids.
This patch implements the spec steps for same-scope, new script
register(). That means:
- If the existing registration is uninstalling, wait for that to
complete before doing anything.
- Create a new worker which becomes the installing worker of the
existing registration.
BUG=398355
TEST=https://codereview.chromium.org/480943002/
Review URL: https://codereview.chromium.org/506043002
Cr-Commit-Position: refs/heads/master@{#292106}
Diffstat (limited to 'DEPS')
0 files changed, 0 insertions, 0 deletions