service worker: Terminate worker thread if top-level script fetch failed
We should terminate a service worker thread when the top-level script fetch fails. Otherwise the thread would stay running and leak a V8 isolate. WorkerGlobalScope::close() schedules thread termination. I manually confirmed that this CL fixes the leak. I'll add a test for this fix in a follow-up CL. Bug: 1005650 Change-Id: If3fd2f7f0f746c4e240b9fdebd4cf242d87a0943 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1819282 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#699201}
Showing
Please register or sign in to comment