Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions browser_patches/webkit/patches/bootstrap.diff
Original file line number Diff line number Diff line change
Expand Up @@ -13399,6 +13399,22 @@ index 0000000000000000000000000000000000000000..a29ae94cda78928fab928bbdd250f8cd
+ eventModifiers,
+ timestamp);
+ m_page.handleMouseEvent(event);
+
+ // WebKit swallows mousedown for right-click internally to handle contextmenu.
+ // Explicitly re-dispatch so page JS handlers receive it, matching behaviour on Mac
+ if (eventType == WebEventType::MouseDown && eventButton == WebMouseEventButton::Right) {
+ NativeWebMouseEvent contextMenuEvent(
+ WebEventType::MouseDown,
+ eventButton,
+ eventButtons,
+ {x, y},
+ WebCore::IntPoint(),
+ 0, 0, 0,
+ eventClickCount,
+ eventModifiers,
+ timestamp);
+ m_page.handleMouseEvent(contextMenuEvent);
+ }
+#endif
+}
+
Expand Down