Chromium Code Reviews
DescriptionServiceWorker: Let dtor of SWRegistration work in the shutdown sequence
Currently the destructor of SWRegistration just returns without any operations
during shutdown because DCHECK_CURRENTLY_ON(BrowserThread::IO) used not to work
when shutting down. This patch removes the early return because
DCHECK_CURRENTLY_ON is now working thanks to https://crrev.com/2180253003.
Once the dtor works, a pointer to SWRegistration owned by SWVersion::listeners_
will be removed appropreately.
Here is steps to repro:
1) Make a tab controlled by a service worker
2) Edit that service worker so the next update would install a new version.
3) Open another tab controlled by the service worker.
4) Now you should have an active worker and a waiting worker
5) Ctrl+Shift+Q to quit the browser. ServiceWorkerRegistration destructor will
be called during shutdown.
BUG=658702
Committed: https://crrev.com/667f50ff47ad7217f21b80369dde3698e4c758c9
Cr-Commit-Position: refs/heads/master@{#429234}
Patch Set 1 #
Messages
Total messages: 16 (9 generated)
|
|||||||||||||||||||