service worker: Remove redundant OnStopped IPC when script fetch fails
We can remove the IPC from FailedTo{LoadClassic,FetchModule}Script() because: * After crrev.com/c/1819282 ServiceWorkerGlobalScope calls close() when top-level script fetch failed. Close() eventually invokes ServiceWorkerContextClient::WorkerContextDestroyed() which sends the IPC. * The reason we sent OnStopped IPC from FailedTo{LoadClassic,FetchModule}Script() was to support on-the-main-thread script fetch. We no longer support it. This CL also ensures that we have test coverage of the linked bug. Following browsertests fail without crrev.com/c/1819282 when this CL is landed. * ServiceWorkerVersionBrowserTest.StartNotFound * ServiceWorkerBlackBoxBrowserTest.Registration Bug: 1005650 Change-Id: Ie61b633b213ca4e8646c009d2f5a0569c55820a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824727Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#700054}
Showing
Please register or sign in to comment