Bug 207905

Summary: Do not eagerly launch WebProcess when WKPagePostMessageToInjectedBundle() is called
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, commit-queue, ggaren, nham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=195954
https://bugs.webkit.org/show_bug.cgi?id=207908
Attachments:
Description Flags
Patch none

Description Chris Dumez 2020-02-18 12:52:35 PST
Do not eagerly launch WebProcess when WKPagePostMessageToInjectedBundle() is called. It is bad for performance as we cannot leverage the process cache if we don't know the domain of the site that will be loaded.
Instead we now queue those injected bundle messages until we really need to launch the process.
Comment 1 Chris Dumez 2020-02-18 12:55:16 PST
Created attachment 391078 [details]
Patch
Comment 2 WebKit Commit Bot 2020-02-18 16:21:54 PST
Comment on attachment 391078 [details]
Patch

Clearing flags on attachment: 391078

Committed r256882: <https://trac.webkit.org/changeset/256882>
Comment 3 WebKit Commit Bot 2020-02-18 16:21:55 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2020-02-18 16:22:52 PST
<rdar://problem/59571018>