Worker: Stop calling 'delete this' in EmbeddedSharedWorkerStub::WorkerScriptLoadFailed()
This CL stops calling 'delete this' in WorkerScriptLoadFailed(), and instead makes sure WorkerContextDestroyed() is called in any case. This cleanup is necessary for off-the-main-thread shared worker script fetch because when the feature is enabled, we cannot destroy the worker at WorkerScriptLoadFailed(), and need to wait for completion of worker thread termination. Bug: 924041 Change-Id: Ia4b744f1d7302efbc53fdc09e42e414a7b768865 Reviewed-on: https://chromium-review.googlesource.com/c/1441735Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#626970}
Showing
Please register or sign in to comment