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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1894253002: Prevent sending click event for non primary button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing tests Created 4 years, 8 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/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 4a88d4598398c243cde77a02e86ba1b3fd74ad95..74d5da3ece8088b115eaa8fbfe652fdba6dcd103 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -1476,8 +1476,10 @@ WebInputEventResult EventHandler::handleMouseReleaseEvent(const PlatformMouseEve
const bool shouldDispatchClickEvent = m_clickCount > 0
&& !contextMenuEvent
&& mev.innerNode() && m_clickNode
- && mev.innerNode()->canParticipateInFlatTree() && m_clickNode->canParticipateInFlatTree()
- && !(selectionController().hasExtendedSelection() && isLinkSelection(mev));
dtapuska 2016/04/22 18:32:30 This change just seems like formatting...
Navid Zolghadr 2016/04/22 19:09:58 Sure. I change it back to what it was.
+ && mev.innerNode()->canParticipateInFlatTree()
+ && m_clickNode->canParticipateInFlatTree()
+ && !(selectionController().hasExtendedSelection()
+ && isLinkSelection(mev));
if (shouldDispatchClickEvent) {
// Updates distribution because a 'mouseup' event listener can make the
// tree dirty at dispatchMouseEvent() invocation above.

Powered by Google App Engine
This is Rietveld 408576698