Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fd4c158c57680d7352a60b0a42677120be9b8314
      
https://github.com/WebKit/WebKit/commit/fd4c158c57680d7352a60b0a42677120be9b8314
  Author: Lauro Moura <[email protected]>
  Date:   2026-04-09 (Thu, 09 Apr 2026)

  Changed paths:
    A LayoutTests/fast/events/monotonic-event-time-real-gap-expected.txt
    A LayoutTests/fast/events/monotonic-event-time-real-gap.html
    M LayoutTests/platform/ios/TestExpectations
    M Tools/WebKitTestRunner/libwpe/EventSenderProxyLibWPE.cpp

  Log Message:
  -----------
  [WPE] EventSenderProxy is sending separate events with identical timestamps
https://bugs.webkit.org/show_bug.cgi?id=311667

Reviewed by Carlos Garcia Campos.

This commit changes WPE's EventSenderProxy to send real event
timestamps, fixing the behavior for tests that have to wait actual wall
time between events or that can't rely on eventSender.leapForward(),
like WPT tests.

Originally, 225273@main replaced the '0' timestamp in the synthetic
events with more meaningful timestamps, but the reference point was kept
static at the EventSenderProxy creation. This resulted in all events for
the same event sender having the same timestamp until leapForward() was
called.

This commit restores EventSenderProxy::m_time to being a leapForward
offset instead of keeping track of the full event timestamp. This
modifier is then added to the current time *at the event submission*
call site.

This new approach is similar to the Mac and GTK behavior, where separate
events already have separate actual timestamps.

New test: fast/events/monotonic-event-time-real-gap.html

This test is based on the original
fast/events/monotonic-event-time.html, but async waiting for a small actual
wall time instead of using leapForward.

* LayoutTests/fast/events/monotonic-event-time-real-gap-expected.txt: Added.
* LayoutTests/fast/events/monotonic-event-time-real-gap.html: Added.
* LayoutTests/platform/ios/TestExpectations:
* Tools/WebKitTestRunner/libwpe/EventSenderProxyLibWPE.cpp:
(WTR::EventSenderProxy::EventSenderProxy):
(WTR::absoluteTimeForEventTime):
(WTR::EventSenderProxy::mouseDown):
(WTR::EventSenderProxy::mouseUp):
(WTR::EventSenderProxy::mouseMoveTo):
(WTR::EventSenderProxy::mouseScrollBy):
(WTR::EventSenderProxy::keyDown):
(WTR::EventSenderProxy::addTouchPoint):
(WTR::EventSenderProxy::updateTouchPoint):
(WTR::EventSenderProxy::touchStart):
(WTR::EventSenderProxy::touchMove):
(WTR::EventSenderProxy::touchEnd):
(WTR::EventSenderProxy::touchCancel):
(WTR::EventSenderProxy::releaseTouchPoint):
(WTR::EventSenderProxy::cancelTouchPoint):

Canonical link: https://commits.webkit.org/310845@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to