Bug 207905 - Do not eagerly launch WebProcess when WKPagePostMessageToInjectedBundle() is called
Summary: Do not eagerly launch WebProcess when WKPagePostMessageToInjectedBundle() is ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-18 12:52 PST by Chris Dumez
Modified: 2020-02-18 16:22 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.26 KB, patch)
2020-02-18 12:55 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>