RESOLVED FIXED311667
[WPE] EventSenderProxy is sending separate events with identical timestamps
https://bugs.webkit.org/show_bug.cgi?id=311667
Summary [WPE] EventSenderProxy is sending separate events with identical timestamps
Lauro Moura
Reported 2026-04-07 12:20:18 PDT
Since 225273@main (6e8572e9fa63c), WPE's EventSenderProxy captures its creation time in EventSenderProxy::m_time, reusing it as the timestamp of its synthesized events. In order to "advance" events in time, this approach requires the tests to call EventSenderProxy::leapForward() through the InjectedBundle, as seen in several tests in fast/events, and fast/editing. This approach does not work when the test relies on actual wall time separation between the events without calling leapForward(). For example, this is the pattern used in some WPT tests like imported/w3c/web-platform-tests/event-timing/gap-keydown-keyup.html and imported/w3c/web-platform-tests/event-timing/gap-pointerdown-pointerup.html, mentioned in bug301110: ``` await new test_driver.Actions().keyDown('a').send() await something() await new test_driver.Actions().keyUp('a').send() // expect different timestamps ``` With the current approach, WPE's EventSenderProxy sends both keyDown and keyUp events with the same timestamp, despite being actually separated in time. Patch incoming.
Attachments
Lauro Moura
Comment 1 2026-04-07 14:37:13 PDT
EWS
Comment 2 2026-04-09 08:19:34 PDT
Committed 310845@main (fd4c158c5768): <https://commits.webkit.org/310845@main> Reviewed commits have been landed. Closing PR #62219 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.