worker: Move pausing top-level classic script execution logic to WorkerGlobalScope
This CL moves logic to top-level script execution from ServiceWorkerGlobalScope to WorkerGlobalScope so that we can use the same logic among other WorkerGlobalScopes. We will use this functionality to avoid a race condition which could happen when off-the-main-thread shared worker script fetch is enabled. Change-Id: Ib34373fe7864189da5ba4c00d19db2c027ce36cc Bug: 945673 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1616863 Auto-Submit: Kenichi Ishibashi <bashi@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:
Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#662039}
Showing
Please register or sign in to comment