Don't allow drags to start after a mouse press that creates a context menu
authordcheng@chromium.org <dcheng@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2013 16:47:02 +0000 (16:47 +0000)
committerdcheng@chromium.org <dcheng@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2013 16:47:02 +0000 (16:47 +0000)
commit87285b39b5e0f9f81d462d7b116ceaf9c3035ff4
tree4fa1a0fa58c3b4047a6eede880c7ffc2bb74154f
parent234f507a33ba0fa081bed2e1d282235bddc0869d
Don't allow drags to start after a mouse press that creates a context menu
https://bugs.webkit.org/show_bug.cgi?id=112079

Reviewed by Tony Chang.

.:

* ManualTests/context-menu-during-drag-selection.html: Added.

Source/WebCore:

This appears to be the intent of the original code anyway (the comments in the corresponding
context menu handlers indicate that they set m_mousePressed to false in order to suppress
drags from starting). Since exact platform behavior differs quite a bit in this area, this
will also make the behavior more consistent across different WebKit implementations.

Manually testable using context-menu-during-drag-selection.html.

* page/EventHandler.cpp:
(WebCore::EventHandler::handleMouseDraggedEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@146784 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
ManualTests/context-menu-during-drag-selection.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/EventHandler.cpp