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

Issue 2048733002: Selecting with shift+drag results in unexpected drag-n-drop (Closed)

Created:
4 years, 6 months ago by tonikitoo
Modified:
4 years, 5 months ago
CC:
blink-reviews, chromium-reviews, dcheng, dtapuska+blinkwatch_chromium.org, Manuel Rego, svillar, Daniel Berlin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Selecting with shift+drag results in unexpected drag-n-drop Whenever user tries to extend an existing text selection by dragging the mouse (left button hold) with shift key pressed, Blink enters drag-n-drop mode. This behavior does not match common editing behavior out there, including other engines' (WebKit, Gecko/Firefox, Opera/Presto and IE). Patch changes Blink so that whenever one extends a selection with mouse and shift key pressed off of a #text node, it does not enter drag-n-drop mode. Additionally, patch also adds some further tests to ensure that when selection is extended off of either a link or an image, drag-n-drop does get triggered, no matter if shift key is pressed. Associated WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=155314. BUG=142023 Committed: https://crrev.com/40285d7edd6ab066b3a9c8756416ea7395b2eb55 Cr-Commit-Position: refs/heads/master@{#403315}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Selecting with shift+drag results in unexpected drag-n-drop #

Total comments: 6

Patch Set 3 : Selecting with shift+drag results in unexpected drag-n-drop #

Total comments: 4

Patch Set 4 : Patch for landing #

Messages

Total messages: 42 (13 generated)
not to use - tonikitoo
PTAL
4 years, 6 months ago (2016-06-07 18:10:07 UTC) #2
not to use - tonikitoo
yosin@chromium.org, rbyers@chromium.org: PTAL.
4 years, 6 months ago (2016-06-07 18:12:47 UTC) #4
tonikitoo
Ok, debug runs seem to be failing at 11:04:50.384 52505 worker/2 virtual/trustedeventsdefaultaction/fast/events/touch/gesture/gesture-tap-mouse-events.html output stderr lines: ...
4 years, 6 months ago (2016-06-07 19:31:50 UTC) #5
yosin_UTC9
C++ changes seems good once click count issue is resolved. https://codereview.chromium.org/2048733002/diff/1/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html File third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html (right): https://codereview.chromium.org/2048733002/diff/1/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html#newcode1 ...
4 years, 6 months ago (2016-06-08 01:37:22 UTC) #8
yosin_UTC9
ping...
4 years, 6 months ago (2016-06-23 07:23:58 UTC) #9
tonikitoo
On 2016/06/23 07:23:58, Yosi_UTC9 wrote: > ping... Yosi, thanks for reviewing. I have the changes ...
4 years, 6 months ago (2016-06-24 16:01:20 UTC) #10
tonikitoo
https://codereview.chromium.org/2048733002/diff/1/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html File third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html (right): https://codereview.chromium.org/2048733002/diff/1/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html#newcode1 third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html:1: <!DOCTYPE html> On 2016/06/08 01:37:21, Yosi_UTC9 wrote: > Could ...
4 years, 6 months ago (2016-06-24 18:39:20 UTC) #11
yosin_UTC9
C++ changes are good. Tests needs to some refinements. https://codereview.chromium.org/2048733002/diff/20001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html File third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html (right): https://codereview.chromium.org/2048733002/diff/20001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html#newcode14 third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html:14: ...
4 years, 5 months ago (2016-06-27 04:21:51 UTC) #12
tonikitoo
https://codereview.chromium.org/2048733002/diff/20001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html File third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html (right): https://codereview.chromium.org/2048733002/diff/20001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html#newcode14 third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-no-drag-n-drop.html:14: if (!window.testRunner || !window.eventSender) On 2016/06/27 04:21:50, Yosi_UTC9 wrote: ...
4 years, 5 months ago (2016-06-27 15:08:15 UTC) #13
yosin_UTC9
lgtm w/ small nits in tests. https://codereview.chromium.org/2048733002/diff/40001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html File third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html (right): https://codereview.chromium.org/2048733002/diff/40001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html#newcode13 third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html:13: var span = ...
4 years, 5 months ago (2016-06-28 01:09:14 UTC) #14
tonikitoo
Addressed your suggestion for all 3 test files. https://codereview.chromium.org/2048733002/diff/40001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html File third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html (right): https://codereview.chromium.org/2048733002/diff/40001/third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html#newcode13 third_party/WebKit/LayoutTests/fast/events/shift-drag-selection-on-image-triggers-drag-n-drop.html:13: var ...
4 years, 5 months ago (2016-06-29 02:49:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2048733002/60001
4 years, 5 months ago (2016-06-29 02:50:28 UTC) #18
commit-bot: I haz the power
The author tonikitoo@igalia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
4 years, 5 months ago (2016-06-29 02:50:30 UTC) #20
Manuel Rego
On 2016/06/29 02:50:30, commit-bot: I haz the power wrote: > The author mailto:tonikitoo@igalia.com has not ...
4 years, 5 months ago (2016-06-29 05:09:11 UTC) #21
tonikitoo
On 2016/06/29 05:09:11, Manuel Rego wrote: > On 2016/06/29 02:50:30, commit-bot: I haz the power ...
4 years, 5 months ago (2016-06-29 05:11:50 UTC) #22
Manuel Rego
Adding @svillar in CC as he usually dealt with the CLA stuff in the past.
4 years, 5 months ago (2016-06-29 05:43:47 UTC) #23
Manuel Rego
+dannyb In theory Igalia has an "all members" corporate CLA. I remember this CL when ...
4 years, 5 months ago (2016-06-30 06:26:34 UTC) #25
blink-reviews
+signcla-eng On Wed, Jun 29, 2016 at 11:26 PM, <rego@igalia.com> wrote: > +dannyb > > ...
4 years, 5 months ago (2016-06-30 06:34:48 UTC) #26
chromium-reviews
+signcla-eng On Wed, Jun 29, 2016 at 11:26 PM, <rego@igalia.com> wrote: > +dannyb > > ...
4 years, 5 months ago (2016-06-30 06:34:52 UTC) #27
blink-reviews
So, before signcla existed, when it was just a spreadsheet, i did indeed update the ...
4 years, 5 months ago (2016-06-30 06:38:36 UTC) #28
chromium-reviews
So, before signcla existed, when it was just a spreadsheet, i did indeed update the ...
4 years, 5 months ago (2016-06-30 06:38:36 UTC) #29
blink-reviews
Igalia has already been ported into the new system. The contributor group is igalia-google-contributors@googlegroups.com, and ...
4 years, 5 months ago (2016-06-30 14:44:05 UTC) #30
chromium-reviews
Igalia has already been ported into the new system. The contributor group is igalia-google-contributors@googlegroups.com, and ...
4 years, 5 months ago (2016-06-30 14:44:06 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2048733002/60001
4 years, 5 months ago (2016-06-30 17:49:23 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/210617)
4 years, 5 months ago (2016-06-30 17:57:22 UTC) #35
Rick Byers
On 2016/06/30 17:57:22, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 5 months ago (2016-06-30 20:13:53 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2048733002/60001
4 years, 5 months ago (2016-06-30 20:17:26 UTC) #38
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-30 22:23:30 UTC) #40
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 22:24:53 UTC) #42
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/40285d7edd6ab066b3a9c8756416ea7395b2eb55
Cr-Commit-Position: refs/heads/master@{#403315}

Powered by Google App Engine
This is Rietveld 408576698