DescriptionService Worker: Handle same-scope, new script registration
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/
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291078
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Total comments: 6
Patch Set 7 : review comments #Patch Set 8 : patch for landing #
Total comments: 2
Created: 6 years, 4 months ago
Messages
Total messages: 12 (0 generated)
|