Ensure ServiceWorkerVersion is alive until shutdown completes |
|
Issue descriptionServiceWorkerProviderHost for controller is now having the ownership of ServiceWorkerVersion. However, during worker shutdown, if the error handler of mojom::SWContainerHost is triggered before mojom::EmbeddedWorkerInstanceHost::OnStopped(), SWProviderHost will be removed before getting the OnStopped() message. We are now reporting it as ABORT. We used to deal with the issue by associating pipes for mojom::EWInstanceClient and mojom::SWContainerHost together at crbug.com/676526 , but now that behavior blocks having a dedicated pipe for mojom::SWContainerHost. We need to ensure SWVersion is kept alive during its shutdown properly.
,
Jun 5 2018
Hmm, c#1 doesn't work well since EWInstance is stopped from the renderer side when the script is identical. We may need to think a bit more how ownerships should be. |
|
►
Sign in to add a comment |
|
Comment 1 by shimazu@chromium.org
, Jun 5 2018