Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index f7013a5d4e0f4feddd2b386647f890922d744e57..a93169a11d4a01e6d206587dc0788011099c044c 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -840,9 +840,13 @@ WebInputEventResult WebViewImpl::HandleGestureEvent( |
} |
} |
- event_result = |
- MainFrameImpl()->GetFrame()->GetEventHandler().HandleGestureEvent( |
- targeted_event); |
+ { |
+ ContextMenuAllowedScope scope; |
+ event_result = |
+ MainFrameImpl()->GetFrame()->GetEventHandler().HandleGestureEvent( |
+ targeted_event); |
+ } |
+ |
if (page_popup_ && last_hidden_page_popup_ && |
page_popup_->HasSamePopupClient(last_hidden_page_popup_.Get())) { |
// The tap triggered a page popup that is the same as the one we just |