Bug 262109
| Summary: | Web Automation: Dispatched mouse events always have `buttons` property set to zero | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Abrar Rahman Protyasha <a_protyasha> |
| Component: | WebDriver | Assignee: | Abrar Rahman Protyasha <a_protyasha> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | a_protyasha, bburg, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Abrar Rahman Protyasha
The `buttons` property on mouse events dispatched by WebAutomationSession is always zero, and does not correctly reflect what mouse button is pressed. I suspect the fix involves swizzling the `+[NSEvent pressedMouseButtons]` like in WKTR/DRT.
This will get us to fully pass the pointerevents/pointerevent_attributes_hoverable_pointers.html?mouse WPT.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/116049187>
Abrar Rahman Protyasha
Pull request: https://github.com/WebKit/WebKit/pull/18265
EWS
Committed 268529@main (e120ba1e5646): <https://commits.webkit.org/268529@main>
Reviewed commits have been landed. Closing PR #18265 and removing active labels.