Bug 270236 - Avoid updating hidden page timer throttling interval for suspended processes
Summary: Avoid updating hidden page timer throttling interval for suspended processes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ben Nham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-02-28 10:32 PST by Ben Nham
Modified: 2024-03-01 18:29 PST (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 Ben Nham 2024-02-28 10:32:37 PST
Currently, every time a tab is created or destroyed, we update the hidden page timer throttling interval and broadcast the change to all processes, including suspended processes. While this doesn't cause a suspended process to resume, it can cause messages to build up in IPC queues that never get drained. This is because the receiver might be a suspended WebContent process. To avoid this, skip sending the throttling updates to suspended processes and update the timer at resume time.
Comment 1 Radar WebKit Bug Importer 2024-02-28 10:32:53 PST
<rdar://problem/123773191>
Comment 2 Ben Nham 2024-02-28 10:35:20 PST
Pull request: https://github.com/WebKit/WebKit/pull/25239
Comment 3 EWS 2024-03-01 18:29:10 PST
Committed 275588@main (199ca3488158): <https://commits.webkit.org/275588@main>

Reviewed commits have been landed. Closing PR #25239 and removing active labels.