Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Workers] Simplify early dedicated worker termination
[Workers] Simplify early dedicated worker termination https://bugs.webkit.org/show_bug.cgi?id=248173 Reviewed by Darin Adler. Merge - https://src.chromium.org/viewvc/blink?view=revision&revision=180532 When the worker was already asked to terminate by the time script content is loaded, there is no need to create and start worker thread, we could exit early instead. * Source/WebCore/workers/WorkerMessagingProxy.cpp: (WorkerMessagingProxy::startWorkerGlobalScope): Add condition to terminate worker early (WorkerMessagingProxy::setResourcCachingDisabledByWebInspector): Remove worker termination logic since moved above, also add ASSERT and update value of "queuedEarlyTasks" Canonical link: https://commits.webkit.org/256949@main
- Loading branch information