[webkit-changes] [WebKit/WebKit] 0987e5: [Workers] Simplify early dedicated worker termination

Ahmad Saleem noreply at github.com
Tue Nov 22 13:22:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0987e578a6a8813156f74ebbf01490e4d31aa8f8
      https://github.com/WebKit/WebKit/commit/0987e578a6a8813156f74ebbf01490e4d31aa8f8
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  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




More information about the webkit-changes mailing list