Bug 203137 - Integrate setTimeout and setInterval with HTML5 event loop
Summary: Integrate setTimeout and setInterval with HTML5 event loop
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on: 203016 203136 203526 204447 204975
Blocks: 164193 202843
  Show dependency treegraph
Reported: 2019-10-17 21:49 PDT by Ryosuke Niwa
Modified: 2019-12-07 16:37 PST (History)
8 users (show)

See Also:

WIP (19.92 KB, patch)
2019-10-18 21:08 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 2 Ryosuke Niwa 2019-10-18 21:08:45 PDT
Created attachment 381366 [details]
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.