| Index: third_party/WebKit/Source/core/input/EventHandler.cpp
|
| diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| index 038faa35d7cfaa1d7f062fe119ffeda61e22efb2..64ae4cf589cdec9116b039cb7fc282436e1a4235 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -3034,9 +3034,11 @@ WebInputEventResult EventHandler::sendContextMenuEventForGesture(const GestureEv
|
|
|
| if (m_frame->settings() && m_frame->settings()->showContextMenuOnMouseUp())
|
| eventType = PlatformEvent::MouseReleased;
|
| - else
|
| - modifiers |= PlatformEvent::RightButtonDown;
|
|
|
| + // Always set right button down as we are sending mousedown event regardless
|
| + modifiers |= PlatformEvent::RightButtonDown;
|
| +
|
| + // TODO(crbug.com/579564): Maybe we should not send mouse down at all
|
| PlatformMouseEvent mouseEvent(targetedEvent.event().position(), targetedEvent.event().globalPosition(), RightButton, eventType, 1,
|
| static_cast<PlatformEvent::Modifiers>(modifiers),
|
| PlatformMouseEvent::FromTouch, WTF::monotonicallyIncreasingTime(), WebPointerProperties::PointerType::Mouse);
|
|
|