Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c2a86003e463ded4528302b12704d474c4e9aba9
      
https://github.com/WebKit/WebKit/commit/c2a86003e463ded4528302b12704d474c4e9aba9
  Author: Tim Nguyen <[email protected]>
  Date:   2025-09-24 (Wed, 24 Sep 2025)

  Changed paths:
    M LayoutTests/platform/mac-wk2/TestExpectations
    M Source/WebKit/Shared/mac/WebEventFactory.mm
    M Tools/WebKitTestRunner/EventSenderProxy.h
    M Tools/WebKitTestRunner/mac/EventSenderProxy.mm
    M Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm

  Log Message:
  -----------
  Some scrollend tests flakily emit two scrollend events instead of one
https://bugs.webkit.org/show_bug.cgi?id=297483
rdar://158436793

Reviewed by Simon Fraser.

The tests were synthesizing a scroll followed by its momentum. Since the 
IOHIDEvent (which contains the info about momentum starting)
is not exposed to synthesized events, we were occasionally considering the 
momentum as a separate scroll.

Use `kCGEventSourceUserData` to store if we're about to start a momentum scroll 
and use that bit from the testing infrastructure when
synthesizing wheel events.

* LayoutTests/platform/mac-wk2/TestExpectations:
* Source/WebKit/Shared/mac/WebEventFactory.mm:
(WebKit::WebEventFactory::createWebWheelEvent):
* Tools/WebKitTestRunner/EventSenderProxy.h:
* Tools/WebKitTestRunner/mac/EventSenderProxy.mm:
(WTR::EventSenderProxy::sendWheelEvent):
* Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm:
(WTR::UIScriptControllerMac::sendEventStream):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to