Bug 224775 - Move application foreground/background notifications to WebProcess/Pool from WebPage/Proxy
Summary: Move application foreground/background notifications to WebProcess/Pool from ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified iOS 14
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-19 12:04 PDT by Jer Noble
Modified: 2021-04-26 12:05 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2021-04-19 12:04:53 PDT
Currently, application foreground/background notifications are listened for in WKContentView, and forwarded to WebPage via WebPageProxy. But because WebPage will just re-broadcast the notification within the WebContent process, this will lead to multiple notifications (and wasted work) being done if there are multiple Pages in the same WebContent process. This code should be moved to a singleton class (WebProcessPool would be a natural choice) and broadcasted only once per specific WebProcess instance.
Comment 1 Radar WebKit Bug Importer 2021-04-26 12:05:21 PDT
<rdar://problem/77169224>