Bug 258536

Summary: Bump process priority during responsiveness checks to avoid false positives
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: REOPENED    
Severity: Normal CC: commit-queue, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 258624    
Bug Blocks:    

Chris Dumez
Reported 2023-06-26 15:28:24 PDT
We recently adopted RunningBoard on macOS and our child processes priorities are now tied to RunningBoard assertions that we hold on their behalf. This means that WebProcesses backing background tabs now get a much lower process priority than they used to. Given that the responsiveness timeout is fairly short (3 seconds), this can lead to false positives. To address the issue, we now hold a foreground assertion during the responsiveness check instead of the implicit background one taken by sendWithAsyncReply().
Attachments
Chris Dumez
Comment 1 2023-06-26 15:29:58 PDT
EWS
Comment 2 2023-06-26 16:18:39 PDT
Committed 265532@main (5b1e40d5fffc): <https://commits.webkit.org/265532@main> Reviewed commits have been landed. Closing PR #15307 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2023-06-26 16:19:16 PDT
WebKit Commit Bot
Comment 4 2023-06-28 08:40:30 PDT
Re-opened since this is blocked by bug 258624
Note You need to log in before you can comment on or make changes to this bug.