Bug 263286 - Consider allowing the background page to throttle or be suspended
Summary: Consider allowing the background page to throttle or be suspended
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Extensions (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-17 15:00 PDT by Timothy Hatcher
Modified: 2023-10-17 15:01 PDT (History)
2 users (show)

See Also:


Attachments

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