Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: third_party/WebKit/Source/core/page/ContextMenuController.cpp

Issue 1986783002: Text selected with double-tap should not cause vibration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make sure we are in Android before saying context menu was not handled Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/ContextMenuController.cpp
diff --git a/third_party/WebKit/Source/core/page/ContextMenuController.cpp b/third_party/WebKit/Source/core/page/ContextMenuController.cpp
index 9f367910474810e788cfd9256eccf9d8b759566f..8eff8007782e535497885d194587917f2eacf261 100644
--- a/third_party/WebKit/Source/core/page/ContextMenuController.cpp
+++ b/third_party/WebKit/Source/core/page/ContextMenuController.cpp
@@ -173,8 +173,7 @@ PassOwnPtr<ContextMenu> ContextMenuController::createContextMenu(LocalFrame* fra
void ContextMenuController::showContextMenu(Event* event)
aelias_OOO_until_Jul13 2016/05/18 01:22:32 I'd suggest adding a unit test for the new logic i
amaralp 2016/05/18 22:16:18 Acknowledged.
{
- m_client->showContextMenu(m_contextMenu.get());
- if (event)
+ if (m_client->showContextMenu(m_contextMenu.get()) && event)
event->setDefaultHandled();
}

Powered by Google App Engine
This is Rietveld 408576698