Bug 260667

Summary: WindowEventLoop can infinite loop trying to run idle callback in suspended pages
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 164193    

Ryosuke Niwa
Reported 2023-08-24 11:06:09 PDT
WindowEventLoop::didReachTimeToRun schedules itself again when an idle callback is scheduled but we didn't have enough time to run it. This logic can infinite loop when the timer never fires because the document has been suspended.
Attachments
Ryosuke Niwa
Comment 1 2023-08-24 11:06:40 PDT
Ryosuke Niwa
Comment 2 2023-08-24 11:11:19 PDT
EWS
Comment 3 2023-08-24 14:24:45 PDT
Committed 267246@main (5033809fcf70): <https://commits.webkit.org/267246@main> Reviewed commits have been landed. Closing PR #17027 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.