Bug 230911

Summary: Add WKProcessPool public API for warmup process
Product: WebKit Reporter: Dan <dsaunders45459>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: achristensen, cdumez, dvpdiner2, ggaren, kevin_neal, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Dan
Reported 2021-09-28 13:48:36 PDT
In our use case we know that the user is about to load web content, but we don't know the exact URL until after some delay. It would improve perceived performance if we could start initializing WebKit including content and networking process, before knowing a URL while our application is idling. -[WKProcessPool _warmInitialProcess] is a preloading API that allows for a similar scenario, but it is private any only warms up the web content process. -[WKWebView loadHTMLString:@"<html><body></body></html" baseUrl:nil] may be a workaround to warm up the processes, but it would be more reliable if we could support this scenario with an official API. Also, if we already have one WKWebView in use, but another user action could result in a new WKWebView on different domain we could call the preload API to signal to WKWebView that it should warmup another web content process to be used on the separate domain. We primarily want to use this preloading API on Mac.
Attachments
Kevin Neal
Comment 1 2021-10-01 09:24:33 PDT
Thank you for filing. The appropriate engineers have been notified.
Radar WebKit Bug Importer
Comment 2 2021-10-01 09:24:45 PDT
Note You need to log in before you can comment on or make changes to this bug.