Service worker registrations should not be resurrected after being unregistered
Categories
(Core :: DOM: Service Workers, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: jaffathecake, Assigned: perry)
References
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Steps to reproduce:
As agreed at TPAC 2018.
Spec change https://github.com/w3c/ServiceWorker/pull/1415
Tests https://github.com/web-platform-tests/wpt/pull/17139
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Thanks for filing the bug! This is something we plan to do in the near term.
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
|
||
-
Remove
ServiceWorkerRegistration
s' pending uninstall flag. -
Rename
ServiceWorkerRegistrationListener
'sRegistrationRemoved
method to
RegistrationCleared
; registrations are no longer necessarily consider
invalid when they are removed from the "scope to registration map", but rather
when they're both removed from the map and not controlling clients (at which
pointClear
is called). -
Maintain the invariant that no
ServiceWorkerRegistrationInfo
in
ServiceWorkerManager::RegistrationDataPerPrincipal::mInfos
(i.e. the "scope
to registration map") is in the unregistered state. Assertions check this in
ServiceWorkerManager::AddScopeAndRegistration
and
ServiceWorkerRegistrationInfo::SetUnregistered
. -
Fix some incorrect web platform tests.
Assignee | ||
Comment 4•6 years ago
|
||
Depends on D38684
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D38685
Assignee | ||
Comment 6•6 years ago
|
||
postMessage('claim')
followed by waitForControlled(win)
was used instead of
calling clients.claim()
in a Service Worker's activate
event handler; this
invocation of the event handler was not reliable due to resurrection
(resurrected active workers won't receive an activate
event). This is no
longer necessary with resurrection removed.
Depends on D38686
Assignee | ||
Comment 7•6 years ago
|
||
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c64a2a56070e
https://hg.mozilla.org/mozilla-central/rev/7509af276a01
https://hg.mozilla.org/mozilla-central/rev/5d821918d5c5
https://hg.mozilla.org/mozilla-central/rev/d8bcac69e89b
Description
•