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

Issue 2877623005: Make DragController::DragIsMove return false when selection does not have focus (Closed)

Created:
3 years, 7 months ago by Xiaocheng
Modified:
3 years, 7 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make DragController::DragIsMove return false when selection does not have focus This patch makes the above change so that when dragging with an unfocused selection, the selection is not considered as the dragging source. BUG=717453 TEST=editing/selection/drag_with_unfocused_selection.html Review-Url: https://codereview.chromium.org/2877623005 Cr-Commit-Position: refs/heads/master@{#471253} Committed: https://chromium.googlesource.com/chromium/src/+/5fb678a9ee8b5e8e303ea0d66ae5efe979e6fcd2

Patch Set 1 #

Patch Set 2 : Add layout test #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/editing/selection/drag_with_unfocused_selection.html View 1 1 chunk +98 lines, -0 lines 4 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (11 generated)
Xiaocheng
PTAL.
3 years, 7 months ago (2017-05-12 03:03:41 UTC) #8
yosin_UTC9
lgtm +tkent@ for OWNERS review.
3 years, 7 months ago (2017-05-12 03:52:52 UTC) #10
yosin_UTC9
https://codereview.chromium.org/2877623005/diff/20001/third_party/WebKit/LayoutTests/editing/selection/drag_with_unfocused_selection.html File third_party/WebKit/LayoutTests/editing/selection/drag_with_unfocused_selection.html (right): https://codereview.chromium.org/2877623005/diff/20001/third_party/WebKit/LayoutTests/editing/selection/drag_with_unfocused_selection.html#newcode16 third_party/WebKit/LayoutTests/editing/selection/drag_with_unfocused_selection.html:16: assert_not_equals(window.eventSender, 'This test requires eventSender'); Let's use |assert_exists(window, 'eventSender');| ...
3 years, 7 months ago (2017-05-12 04:05:45 UTC) #11
tkent
lgtm
3 years, 7 months ago (2017-05-12 04:58:40 UTC) #12
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/2877623005/20001
3 years, 7 months ago (2017-05-12 08:43:04 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 09:03:16 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5fb678a9ee8b5e8e303ea0d66ae5...

Powered by Google App Engine
This is Rietveld 408576698