[ServiceWorker] Propagate UseCounter to controllee document upon execution ready
For a controllee document, the initial set of used features of its controller service worker are sent to the renderer process as part of ControllerServiceWorkerInfo via navigation commit IPC, however, after that the controller service worker may have used some other new features, which are also needed to be propagated to the document in the renderer process for setting UseCounter correctly. Previously, the provider host holds off doing this until it received the ServiceWorkerContainerHost::OnProviderCreated() Mojo call. This CL postpones doing that further until the ServiceWorkerContainerHost::OnExecutionReady() Mojo call came, which should have no bad effect, but help reduce the burden of ServiceWorkerProviderHost::OnProviderCreated() to make it easier for us to remove the ServiceWorkerContainerHost::OnProviderCreated() Mojo call completely later. BUG=931092 Change-Id: Iaf8505576064bad76335c07e806eba35aa9c5e05 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1531824Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Commit-Queue: Leon Han <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#644723}
Showing
Please register or sign in to comment