[webkit-changes] [WebKit/WebKit] 58f9af: Add a nullptr check to WebSharedWorkerServer::requ...

youennf noreply at github.com
Thu Jul 6 11:38:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 58f9af3bc9d011876b4dac25045863e67e0b901a
      https://github.com/WebKit/WebKit/commit/58f9af3bc9d011876b4dac25045863e67e0b901a
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M Source/WebKit/NetworkProcess/SharedWorker/WebSharedWorkerServer.cpp

  Log Message:
  -----------
  Add a nullptr check to WebSharedWorkerServer::requestSharedWorker
https://bugs.webkit.org/show_bug.cgi?id=258913
rdar://106990221

Reviewed by Chris Dumez.

In case the WebProcess goes away in the middle of the postConnectEvent call within WebSharedWorkerServer::requestSharedWorker,
we restart requestSharedWorker since the callback will be called with false.
At this point, there is no server connection and no shared worker object since its process is gone.
Add a nullptr check to bail out early in this case.

* Source/WebKit/NetworkProcess/SharedWorker/WebSharedWorkerServer.cpp:
(WebKit::WebSharedWorkerServer::requestSharedWorker):

Canonical link: https://commits.webkit.org/265815@main




More information about the webkit-changes mailing list