[webkit-changes] [WebKit/WebKit] cd1990: [iOS] Network process unresponsive due to suspension
Miguel Salinas
noreply at github.com
Mon Apr 17 12:24:50 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cd1990281851f02d502f18377b4355dcd1e5f2bf
https://github.com/WebKit/WebKit/commit/cd1990281851f02d502f18377b4355dcd1e5f2bf
Author: Miguel Salinas <miguel_salinas at apple.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M Source/WebKit/UIProcess/ProcessThrottler.h
M Source/WebKit/UIProcess/WebProcessProxy.cpp
Log Message:
-----------
[iOS] Network process unresponsive due to suspension
https://bugs.webkit.org/show_bug.cgi?id=255417
rdar://105621258
Reviewed by Chris Dumez.
If a WebContent process is a standalone worker process with a foreground
assertion/activity (e.g. a worker for a foreground view) and then a page
gets added to the process it will never take an assertion on the network
process as it should. We need to make sure we call
WebProcessProxy::didChangeThrottleState() when a standalone worker
process becomes a web content process with a page.
WebProcessProxy::didChangeThrottleState() checks
isStandaloneServiceWorkerProcess() and drops all network assertions if
it returns true.
* Source/WebKit/UIProcess/ProcessThrottler.h:
(WebKit::ProcessThrottler::currentState):
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::addExistingWebPage):
Canonical link: https://commits.webkit.org/263031@main
More information about the webkit-changes
mailing list