You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
8.5 [[Activate]]
...
3. Let exitingWorker be registration.activeWorker.
4. If exitingWorker is not null, then:
1. Wait for exitingWorker to finish handling any in-progress requests.
...
Issue condition:
/foo.html started with sw_v1 (scope is default '/*');
a registration is triggered from /bar.html like navigator.serviceWorker.register('sw_v2.js', {scope: '/foo.html'}), and sw_v2.js calls .replace() in oninstall() to trigger replacement;
Problem:
The "registration" used by step 2 is not the one used by the running foo.html, which means the "registration.activeWorker" will be null here.
Then the possible running sw_v1 worker will be replaced without 8.5.4 steps.
Should we also terminate all running workers matches the registration.scope when .replace() is called?
The text was updated successfully, but these errors were encountered:
In spec [[Activate]] algorithm:
Issue condition:
navigator.serviceWorker.register('sw_v2.js', {scope: '/foo.html'})
, and sw_v2.js calls .replace() in oninstall() to trigger replacement;Problem:
The "registration" used by step 2 is not the one used by the running foo.html, which means the "registration.activeWorker" will be null here.
Then the possible running sw_v1 worker will be replaced without 8.5.4 steps.
Should we also terminate all running workers matches the registration.scope when .replace() is called?
The text was updated successfully, but these errors were encountered: