DescriptionServiceWorker: Ensure live registration during starting worker
Starting service worker requires a reference to the live registration in
order to expose a registration object within SWGlobalScope but no one has
ensured the liveness of the registration during the startup sequence.
This CL makes SWVersion to ensure the live registration during the period.
BUG=465254
TEST=content_browsertests --gtest_filter=ServiceWorkerVersionBrowserTest.*
TEST=content_unittests --gtest_filter=ServiceWorkerVersion*
Committed: https://crrev.com/ee784d496646d55da6395f8fda44fd2c52825e7e
Cr-Commit-Position: refs/heads/master@{#320477}
Patch Set 1 : #
Total comments: 6
Patch Set 2 : push the reference into start callbacks #
Total comments: 4
Patch Set 3 : revert unnecessary/unrelated code #Patch Set 4 : fix tests #Messages
Total messages: 17 (7 generated)
|