Commit 07e1827
committed
Crash under WebAutomationSession::platformSimulateMouseInteraction when running pointerevents/pointerevent_click_during_capture.html?mouse-auxclick WPT
https://bugs.webkit.org/show_bug.cgi?id=280768
rdar://137068514
Reviewed by Aditya Keerthi and Abrar Rahman Protyasha.
Abrar Protyasha determined that web-platform-test
'pointerevent_click_during_capture.html?mouse-auxclick' is crashing due to
dragEventType not getting updated when a right click is simulated in
WebAutomationSession::platformSimulateMouseInteraction. This causes an NSEvent
instantiation with an NSEventType of 0, resulting in a crash. Adding this missing
update fixes the test crash.
* Source/WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm:
(WebKit::WebAutomationSession::platformSimulateMouseInteraction):
Canonical link: https://commits.webkit.org/284577@main1 parent ba0327a commit 07e1827
File tree
1 file changed
+1
-0
lines changed- Source/WebKit/UIProcess/Automation/mac
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
0 commit comments