| Index: content/renderer/browser_plugin/browser_plugin.cc
|
| diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
|
| index 3a01dac287360e1c0c5d3bb155aac0e32e021e05..75d15c837cc3f8fddb32c19cad62b2d8b60d3bc7 100644
|
| --- a/content/renderer/browser_plugin/browser_plugin.cc
|
| +++ b/content/renderer/browser_plugin/browser_plugin.cc
|
| @@ -429,8 +429,14 @@ blink::WebInputEventResult BrowserPlugin::handleInputEvent(
|
|
|
| if (blink::WebInputEvent::isGestureEventType(event.type)) {
|
| auto gesture_event = static_cast<const blink::WebGestureEvent&>(event);
|
| - if (gesture_event.resendingPluginId == browser_plugin_instance_id_)
|
| - return blink::WebInputEventResult::NotHandled;
|
| + DCHECK(blink::WebInputEvent::GestureTapDown == event.type ||
|
| + gesture_event.resendingPluginId == browser_plugin_instance_id_);
|
| +
|
| + // We shouldn't be forwarding GestureEvents to the Guest anymore. Indicate
|
| + // we handled this only if it's a non-resent event.
|
| + return gesture_event.resendingPluginId == browser_plugin_instance_id_
|
| + ? blink::WebInputEventResult::NotHandled
|
| + : blink::WebInputEventResult::HandledApplication;
|
| }
|
|
|
| if (event.type == blink::WebInputEvent::ContextMenu)
|
|
|