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

Issue 1013303003: Preventing the default action on 'mousemove' listener shouldn't prevent selection (Closed)

Created:
5 years, 9 months ago by ramya.v
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Preventing the default action on 'mousemove' listener shouldn't prevent selection As per the spec, mousemove has no default action: http://www.w3.org/TR/DOM-Level-3-Events/#event-type-mousemove. Hence preventing the default action on mousemove should not prevent selection/drag from happening. Made changes to allow drag operation irrespective of mousemove event cancellation similar to behavior of other browsers. BUG=346473 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192855

Patch Set 1 #

Total comments: 8

Patch Set 2 : Updated test case as per review comments #

Patch Set 3 : Updating testcase as per review comments #

Patch Set 4 : Updating expectation file #

Total comments: 2

Patch Set 5 : Modified the comment as per review comments #

Total comments: 2

Patch Set 6 : Modifying comment as per review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -3 lines) Patch
A LayoutTests/fast/events/drag-on-mouse-move-cancelled.html View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/drag-on-mouse-move-cancelled-expected.txt View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
ramya.v
PTAL!
5 years, 9 months ago (2015-03-19 04:27:00 UTC) #2
leviw_travelin_and_unemployed
https://codereview.chromium.org/1013303003/diff/1/LayoutTests/fast/events/drag-on-mouse-move-cancelled.html File LayoutTests/fast/events/drag-on-mouse-move-cancelled.html (right): https://codereview.chromium.org/1013303003/diff/1/LayoutTests/fast/events/drag-on-mouse-move-cancelled.html#newcode1 LayoutTests/fast/events/drag-on-mouse-move-cancelled.html:1: <script> Nit: doctype. https://codereview.chromium.org/1013303003/diff/1/LayoutTests/fast/events/drag-on-mouse-move-cancelled.html#newcode2 LayoutTests/fast/events/drag-on-mouse-move-cancelled.html:2: window.onload = function(evt) { ...
5 years, 9 months ago (2015-03-19 12:56:12 UTC) #3
ramya.v
Made Changes as per review comments. PTAL! Thanks https://codereview.chromium.org/1013303003/diff/1/LayoutTests/fast/events/drag-on-mouse-move-cancelled.html File LayoutTests/fast/events/drag-on-mouse-move-cancelled.html (right): https://codereview.chromium.org/1013303003/diff/1/LayoutTests/fast/events/drag-on-mouse-move-cancelled.html#newcode1 LayoutTests/fast/events/drag-on-mouse-move-cancelled.html:1: <script> ...
5 years, 9 months ago (2015-03-24 05:29:20 UTC) #4
rwlbuis
Ramya, I think you should add some sentences to your commit log explaining the patch. ...
5 years, 9 months ago (2015-03-24 14:00:54 UTC) #6
ramya.v
On 2015/03/24 14:00:54, rwlbuis wrote: > Ramya, I think you should add some sentences to ...
5 years, 9 months ago (2015-03-25 03:14:35 UTC) #7
leviw_travelin_and_unemployed
Ideally your subject line is a very short summary that doesn't wrap. That's the line ...
5 years, 9 months ago (2015-03-25 16:45:39 UTC) #8
ramya.v
On 2015/03/25 16:45:39, leviw wrote: > Ideally your subject line is a very short summary ...
5 years, 9 months ago (2015-03-26 03:18:57 UTC) #9
leviw_travelin_and_unemployed
On 2015/03/26 at 03:18:57, ramya.v wrote: > On 2015/03/25 16:45:39, leviw wrote: > > Ideally ...
5 years, 9 months ago (2015-03-26 18:37:58 UTC) #10
ramya.v
On 2015/03/26 18:37:58, leviw wrote: > On 2015/03/26 at 03:18:57, ramya.v wrote: > > On ...
5 years, 9 months ago (2015-03-27 03:09:24 UTC) #11
leviw_travelin_and_unemployed
https://codereview.chromium.org/1013303003/diff/60001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/1013303003/diff/60001/Source/core/page/EventHandler.cpp#newcode1505 Source/core/page/EventHandler.cpp:1505: // irrespective of event is cancelled or not there ...
5 years, 9 months ago (2015-03-27 19:13:34 UTC) #12
ramya.v
@leviw, Modified as per review comments PTAL! Thanks https://codereview.chromium.org/1013303003/diff/60001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/1013303003/diff/60001/Source/core/page/EventHandler.cpp#newcode1505 Source/core/page/EventHandler.cpp:1505: // ...
5 years, 8 months ago (2015-03-30 03:19:36 UTC) #13
leviw_travelin_and_unemployed
https://codereview.chromium.org/1013303003/diff/80001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/1013303003/diff/80001/Source/core/page/EventHandler.cpp#newcode1505 Source/core/page/EventHandler.cpp:1505: // irrespective of whether event is cancelled or not ...
5 years, 8 months ago (2015-03-30 17:27:51 UTC) #14
ramya.v
@leviw Modified as per review comments. PTAL! Thanks. https://codereview.chromium.org/1013303003/diff/80001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/1013303003/diff/80001/Source/core/page/EventHandler.cpp#newcode1505 Source/core/page/EventHandler.cpp:1505: // ...
5 years, 8 months ago (2015-03-31 04:52:14 UTC) #15
leviw_travelin_and_unemployed
lgtm.
5 years, 8 months ago (2015-03-31 17:58:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1013303003/100001
5 years, 8 months ago (2015-03-31 17:59:13 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=192855
5 years, 8 months ago (2015-03-31 21:45:34 UTC) #19
Rick Byers
5 years, 7 months ago (2015-05-14 01:57:12 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1145433002/ by rbyers@chromium.org.

The reason for reverting is: Revert because there are applications (like Google
maps - http://crbug.com/485892) which are relying on disabling text selection /
drag and drop but are forced to avoid cancelling mousedown (due to
http://crbug.com/269917)..

Powered by Google App Engine
This is Rietveld 408576698