[webkit-changes] [WebKit/WebKit] bce1eb: Page reload does not take a foreground process ass...
bnham
noreply at github.com
Tue May 23 15:28:29 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bce1eb6c24fb334f92caabbc784a980de76b7f2b
https://github.com/WebKit/WebKit/commit/bce1eb6c24fb334f92caabbc784a980de76b7f2b
Author: Ben Nham <nham at apple.com>
Date: 2023-05-23 (Tue, 23 May 2023)
Changed paths:
M Source/WebKit/UIProcess/WebPageProxy.cpp
Log Message:
-----------
Page reload does not take a foreground process assertion
https://bugs.webkit.org/show_bug.cgi?id=257210
rdar://109407280
Reviewed by Chris Dumez.
On some app resumes where an app does a reload in an offscreen WKWebView, we have seen WebContent
initialization take 15+ seconds because it's running at background priority. This is because
WebPageProxy::reload doesn't take a foreground process assertion. However, WebPageProxy::loadRequest
does take a foreground process assertion by default on iOS (bug 207341). This patch fixes that
inconsistency.
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::launchProcessForReload):
(WebKit::WebPageProxy::reload):
Canonical link: https://commits.webkit.org/264443@main
More information about the webkit-changes
mailing list