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

Issue 2610023002: Reset DragState::m_dragSrc when mouse move doesn't meet drag threshold. (Closed)

Created:
3 years, 11 months ago by pwnall
Modified:
3 years, 11 months ago
Reviewers:
dcheng
CC:
chromium-reviews, blink-reviews, dtapuska+blinkwatch_chromium.org, Navid Zolghadr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reset DragState::m_dragSrc when mouse move doesn't meet drag threshold. The rest of blink assumes that the DragState is completely valid if DragState::m_dragSrc is not null. However, MouseEventManger::handleDrag has a code path that sets DragState::m_dragSrc, but does not call tryStartDrag(), which sets DragState::m_dataTransfer. This creates the opportunity for crashes, as DragState::m_dataTransfer is initialized to null when a renderer is created. BUG=677916 Review-Url: https://codereview.chromium.org/2610023002 Cr-Commit-Position: refs/heads/master@{#444252} Committed: https://chromium.googlesource.com/chromium/src/+/441df0543f6f4029f73068dec974d4dac47f6a1f

Patch Set 1 #

Patch Set 2 : Better comment about test circumstances. #

Total comments: 2

Patch Set 3 : Added crbug.com issue tracking the investigation of the crash conditions. #

Patch Set 4 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -1 line) Patch
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 33 (23 generated)
pwnall
PTAL? The bug has stack traces, and a description of why I think the crash ...
3 years, 11 months ago (2017-01-03 22:53:30 UTC) #4
dcheng
The slightly surprising part (to me) is that we'd get a drag ended signal here ...
3 years, 11 months ago (2017-01-04 19:11:11 UTC) #7
pwnall
On 2017/01/04 19:11:11, dcheng wrote: > The slightly surprising part (to me) is that we'd ...
3 years, 11 months ago (2017-01-04 22:37:01 UTC) #8
pwnall
On 2017/01/04 22:37:01, pwnall wrote: > On 2017/01/04 19:11:11, dcheng wrote: > > The slightly ...
3 years, 11 months ago (2017-01-12 01:19:42 UTC) #9
dcheng
On 2017/01/12 01:19:42, pwnall wrote: > On 2017/01/04 22:37:01, pwnall wrote: > > On 2017/01/04 ...
3 years, 11 months ago (2017-01-16 10:45:35 UTC) #10
pwnall
On 2017/01/16 10:45:35, dcheng wrote: > I don't think it's unreasonable to merge the fix ...
3 years, 11 months ago (2017-01-16 21:07:11 UTC) #15
dcheng
LGTM https://codereview.chromium.org/2610023002/diff/20001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2610023002/diff/20001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode279 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:279: // could occur before a drag operation is ...
3 years, 11 months ago (2017-01-17 22:24:11 UTC) #16
pwnall
Thank you very much for the review! https://codereview.chromium.org/2610023002/diff/20001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2610023002/diff/20001/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode279 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:279: // could ...
3 years, 11 months ago (2017-01-18 00:17:50 UTC) #20
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/2610023002/80001
3 years, 11 months ago (2017-01-18 02:47:35 UTC) #29
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 02:56:22 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/441df0543f6f4029f73068dec974...

Powered by Google App Engine
This is Rietveld 408576698