Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0987e578a6a8813156f74ebbf01490e4d31aa8f8
https://github.com/WebKit/WebKit/commit/0987e578a6a8813156f74ebbf01490e4d31aa8f8
Author: Ahmad Saleem <[email protected]>
Date: 2022-11-22 (Tue, 22 Nov 2022)
Changed paths:
M Source/WebCore/workers/WorkerMessagingProxy.cpp
Log Message:
-----------
[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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes