Worker: Check forcible termination by WorkerThread::isForciblyTerminated()
Before this CL, WorkerThread checks whether forcible termination happened by WorkerOrWorkletScriptController::isExecutionTerminating(). After this CL, WorkerThread checks it by WorkerThread::isForciblyTerminated() instead. This should be clearer than the previous way and enables to remove an access to WorkerThread::m_globalScope from the main thread. BUG=638877 Review-Url: https://codereview.chromium.org/2324693003 Cr-Commit-Position: refs/heads/master@{#418571}
Showing
Please register or sign in to comment