| 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 d36de3c215f4d59dc92c685cebf17884f9da6500..16a70de233873755b2011c47e3e4826d5cc6b76f 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -67,6 +67,7 @@
|
| #include "core/html/HTMLMediaElement.h"
|
| #include "core/html/HTMLPlugInElement.h"
|
| #include "core/html/HTMLTextAreaElement.h"
|
| +#include "core/input/ContextMenuAllowedScope.h"
|
| #include "core/input/EventHandler.h"
|
| #include "core/input/TouchActionUtil.h"
|
| #include "core/layout/LayoutPart.h"
|
| @@ -162,7 +163,6 @@
|
| #include "web/AnimationWorkletProxyClientImpl.h"
|
| #include "web/CompositorMutatorImpl.h"
|
| #include "web/CompositorWorkerProxyClientImpl.h"
|
| -#include "web/ContextMenuAllowedScope.h"
|
| #include "web/DedicatedWorkerMessagingProxyProviderImpl.h"
|
| #include "web/DevToolsEmulator.h"
|
| #include "web/FullscreenController.h"
|
| @@ -841,9 +841,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
|
|
|