RESOLVED FIXED 240030
Right click using trackpad crashes Safari
https://bugs.webkit.org/show_bug.cgi?id=240030
Summary Right click using trackpad crashes Safari
Kate Cheney
Reported 2022-05-03 11:38:18 PDT
Right click using trackpad crashes Safari
Attachments
Patch (11.18 KB, patch)
2022-05-03 11:40 PDT, Kate Cheney
ews-feeder: commit-queue-
Patch (11.40 KB, patch)
2022-05-03 15:05 PDT, Kate Cheney
no flags
Patch (11.42 KB, patch)
2022-05-04 08:22 PDT, Kate Cheney
no flags
Kate Cheney
Comment 1 2022-05-03 11:40:09 PDT
Chris Dumez
Comment 2 2022-05-03 13:20:02 PDT
Comment on attachment 458751 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=458751&action=review > Source/WebCore/page/EventHandler.cpp:572 > + if (!m_frame.selection().selection().isContentEditable() && (!result.targetNode() || !result.targetNode()->isTextNode())) nit: `!result.targetNode() || !result.targetNode()->isTextNode())` could be written as: `!is<Text>(result.targetNode())`
Kate Cheney
Comment 3 2022-05-03 14:40:27 PDT
Nice! will fix that. Also looks like I might need to add #import <pal/spi/cocoa/RevealSPI.h> to make iOS sim happy.
Kate Cheney
Comment 4 2022-05-03 15:05:04 PDT
Wenson Hsieh
Comment 5 2022-05-04 08:18:10 PDT
Comment on attachment 458759 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=458759&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/iOSMouseSupport.mm:179 > + [webView synchronouslyLoadTestPageNamed:@"empty"]; I think you meant to rename this to "emptyTable" too.
Kate Cheney
Comment 6 2022-05-04 08:19:26 PDT
(In reply to Wenson Hsieh from comment #5) > Comment on attachment 458759 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=458759&action=review > > > Tools/TestWebKitAPI/Tests/WebKitCocoa/iOSMouseSupport.mm:179 > > + [webView synchronouslyLoadTestPageNamed:@"empty"]; > > I think you meant to rename this to "emptyTable" too. I did indeed!
Kate Cheney
Comment 7 2022-05-04 08:22:25 PDT
Kate Cheney
Comment 8 2022-05-05 08:17:14 PDT
Kate Cheney
Comment 9 2022-05-05 08:17:29 PDT
Comment on attachment 458796 [details] Patch API iOS test failures are unrelated.
EWS
Comment 10 2022-05-05 08:37:19 PDT
Committed r293835 (250308@main): <https://commits.webkit.org/250308@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 458796 [details].
Note You need to log in before you can comment on or make changes to this bug.