DescriptionServiceWorker: Support SWRegistration.unregister() in SWGlobalScope [1/2]
SWRegistration.unregister() depends on WebSWProvider, but it's not available
in SWGlobalScope because the provider isn't supplied on the worker startup
sequence. This series of CLs make it available and support unregister() in
the service worker context.
This CL implements createServiceWorkerProvider() to supply a provider and
sets the document URL of its provider host to the worker script URL in
order to allow unregister() call on SWGlobalScope.
[1] Chromium: THIS PATCH
[2] Blink: https://codereview.chromium.org/900793002/
BUG=452910
TEST=compile
Committed: https://crrev.com/3d7ea50b10067d64dfc3d075b2c5ba0e47c9e982
Cr-Commit-Position: refs/heads/master@{#314979}
Patch Set 1 : #
Total comments: 5
Patch Set 2 : update header comment #Patch Set 3 : update header comment2 #
Total comments: 2
Patch Set 4 : rebase #Patch Set 5 : update header comment3 #Patch Set 6 : update header comment4 #
Messages
Total messages: 21 (9 generated)
|