ServiceWorker: 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 Review URL: https://codereview.chromium.org/893363003 Cr-Commit-Position: refs/heads/master@{#314979}
Showing
Please register or sign in to comment