Bug 263286

Summary: Consider allowing the background page to throttle or be suspended
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: WebKit ExtensionsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Timothy Hatcher 2023-10-17 15:00:57 PDT
Right now we disable timer throttling, and running board suspension / throttling by setting these properties:

    preferences._hiddenPageDOMTimerThrottlingEnabled = NO;
    preferences._pageVisibilityBasedProcessSuppressionEnabled = NO;
    preferences.inactiveSchedulingPolicy = WKInactiveSchedulingPolicyNone;

We should investigate ways to allow this suspension / throttling to happen and wake the background page up as needed (when events need to fire, etc).
Comment 1 Radar WebKit Bug Importer 2023-10-17 15:01:26 PDT
<rdar://problem/117096430>