-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pointerevent_movementxy.html?mouse WPT is failing on safaridriver after 265730@main #17089
Conversation
EWS run on previous version of this PR (hash 1a62d08) |
EWS run on current version of this PR (hash e2ea2eb) |
Thanks for the review! I've confirmed locally that we don't break any existing |
β¦er 265730@main https://bugs.webkit.org/show_bug.cgi?id=260633 rdar://114350545 Reviewed by Aditya Keerthi. The pointerevent_movementxy.html?mouse WPT was made to pass on WKTR in 265730@main, but this test continued to fail when run through the WPT + safaridriver tooling. It turns out that we're just never propagating the mousemove event deltas before sending NSEvent instances in WebAutomationSession::platformSimulateMouseInteraction. To fix this, we make two changes: 1. Keep track of the previous mouse click by calling into WebAutomationSession::updateClickCount(). 2. Follow the precedent set by EventSenderProxy in WKTR and assign the deltaX/Y fields of a CGEvent, finally initializing an NSEvent from it. No new tests because we do not expect WebKit behavior to change. * Source/WebKit/UIProcess/Automation/WebAutomationSession.h: Provide default values to the maxTime and maxDistance arguments in WebAutomationSession::updateClickCount(). This matches the time and distance heuristics used in EventSenderProxy::updateClickCountForButton. * Source/WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm: (WebKit::WebAutomationSession::platformSimulateMouseInteraction): Canonical link: https://commits.webkit.org/267367@main
e2ea2eb
to
7d047e3
Compare
Committed 267367@main (7d047e3): https://commits.webkit.org/267367@main Reviewed commits have been landed. Closing PR #17089 and removing active labels. |
7d047e3
e2ea2eb