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

Issue 488923003: Gracefully handle drag cancellation during drag start. (Closed)

Created:
6 years, 4 months ago by sof
Modified:
6 years, 4 months ago
Reviewers:
tkent, dcheng
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Gracefully handle drag cancellation during drag start. Should the dispatching of a dragstart cause the drag to be reset, take that into account when trying to handle follow-on drag operations. The test is imported from https://bugs.webkit.org/show_bug.cgi?id=115296 R=dcheng@chromium.org BUG=405442 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180646

Patch Set 1 #

Total comments: 2

Patch Set 2 : Explanatory comment #

Total comments: 1

Patch Set 3 : Expand comment somewhat #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -1 line) Patch
A LayoutTests/fast/events/mousedown-inside-dragstart-should-not-cause-crash.html View 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/mousedown-inside-dragstart-should-not-cause-crash-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
sof
Please take a look.
6 years, 4 months ago (2014-08-20 09:36:09 UTC) #1
dcheng
https://codereview.chromium.org/488923003/diff/1/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/488923003/diff/1/Source/core/page/EventHandler.cpp#newcode3266 Source/core/page/EventHandler.cpp:3266: && !m_frame->selection().isInPasswordField() && dragState().m_dragSrc; I wonder if it's worth ...
6 years, 4 months ago (2014-08-20 10:56:24 UTC) #2
dcheng
LGTM btw (not sure why my last message didn't include this).
6 years, 4 months ago (2014-08-20 10:57:11 UTC) #3
sof
https://codereview.chromium.org/488923003/diff/1/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/488923003/diff/1/Source/core/page/EventHandler.cpp#newcode3266 Source/core/page/EventHandler.cpp:3266: && !m_frame->selection().isInPasswordField() && dragState().m_dragSrc; On 2014/08/20 10:56:24, dcheng (OOO) ...
6 years, 4 months ago (2014-08-20 11:06:43 UTC) #4
dcheng
https://codereview.chromium.org/488923003/diff/20001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/488923003/diff/20001/Source/core/page/EventHandler.cpp#newcode3266 Source/core/page/EventHandler.cpp:3266: // If dispatching dragstart brings about a mouse down ...
6 years, 4 months ago (2014-08-20 11:16:07 UTC) #5
sof
On 2014/08/20 11:16:07, dcheng (OOO) wrote: > https://codereview.chromium.org/488923003/diff/20001/Source/core/page/EventHandler.cpp > File Source/core/page/EventHandler.cpp (right): > > https://codereview.chromium.org/488923003/diff/20001/Source/core/page/EventHandler.cpp#newcode3266 ...
6 years, 4 months ago (2014-08-20 11:30:13 UTC) #6
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 4 months ago (2014-08-20 11:30:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/488923003/40001
6 years, 4 months ago (2014-08-20 11:31:05 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-20 12:28:40 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 13:52:18 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (40001) as 180646

Powered by Google App Engine
This is Rietveld 408576698