Bug 203137

Summary: Integrate setTimeout and setInterval with HTML5 event loop
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, dbates, esprehn+autocc, ews-watchlist, ggaren, kangil.han, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=203586
Bug Depends on: 203016, 203136, 203526, 204447, 204975, 259857, 259997    
Bug Blocks: 202843, 164193    
Attachments:
Description Flags
WIP none

Description Ryosuke Niwa 2019-10-17 21:49:13 PDT
We need to integrate DOM timers with HTML5 event loop.
Comment 1 Radar WebKit Bug Importer 2019-10-17 21:50:24 PDT
<rdar://problem/56396746>
Comment 2 Ryosuke Niwa 2019-10-18 21:08:45 PDT
Created attachment 381366 [details]
WIP
Comment 3 Ryosuke Niwa 2019-11-20 23:42:22 PST
Hm... integrating SuspendableTimerBase with EventLoop is a bit tricky because at the time of Document creation, we don't know to which EventLoop we belong due to the security origin of the document not being initialized until later in the constructor yet DocumentEventQueue relies on SuspendableTimerBase. We may need to do more refactoring to make this work.
Comment 4 Ryosuke Niwa 2023-08-09 19:30:51 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16550
Comment 5 EWS 2023-08-11 13:27:54 PDT
Committed 266828@main (43d0b6dbeebf): <https://commits.webkit.org/266828@main>

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