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

Issue 2471843005: Delegate dragend to the correct frame's EventHandler. (Closed)

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

Description

Delegate dragend to the correct frame's EventHandler. This is a re-land of https://crrev.com/32e50971f32bcd21be8540758efe9aac0ffafcd9 whose description is below. Currently, most drag-and-drop events are correctly delegated to the EventHandler of the frame that contains the events' target elements, in EventHandler::updateDragAndDrop. However, EventHandler::dragSourceEndedAt does not implement this delegation. The issue is visible to the Web in a subtle way -- the frame of the EventHandler is used to populate the DragEvent's view, which is used to compute the clientX and clientY attributes, which are user-visible. This CL implements the delegation used by MouseEventManager::dispatchDragSrcEvent, into MouseEventManager::dispatchDragSrcEvent. BUG=618770 Committed: https://crrev.com/fb74d203dc9797b1e12592cac7c86f1d2b923eab Cr-Commit-Position: refs/heads/master@{#430432}

Patch Set 1 : https://codereview.chromium.org/2469863003 #

Patch Set 2 : The LSAN-reported leak was actually a failure to reset the drag state in MouseEventHandler. #

Total comments: 8

Patch Set 3 : Addressed some of the feedback. #

Messages

Total messages: 23 (12 generated)
pwnall
Can you please take another look? The ASAN trybots don't run layout tests [1, 2], ...
4 years, 1 month ago (2016-11-04 13:19:41 UTC) #4
dcheng
https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1984 third_party/WebKit/Source/core/input/EventHandler.cpp:1984: m_mouseEventManager->dragSourceEndedAt(event, operation); Hmm... that means this actually gets called ...
4 years, 1 month ago (2016-11-04 15:12:15 UTC) #7
Navid Zolghadr
https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1970 third_party/WebKit/Source/core/input/EventHandler.cpp:1970: // Asides from routing the event to the correct ...
4 years, 1 month ago (2016-11-04 15:29:06 UTC) #9
pwnall
Thank you very much for the quick feedback! Here are some thoughts below. I'll get ...
4 years, 1 month ago (2016-11-04 18:24:29 UTC) #10
Navid Zolghadr
https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1970 third_party/WebKit/Source/core/input/EventHandler.cpp:1970: // Asides from routing the event to the correct ...
4 years, 1 month ago (2016-11-04 18:33:22 UTC) #11
pwnall
Thank you very much for your explanations! PTAL? https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2471843005/diff/20001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1970 third_party/WebKit/Source/core/input/EventHandler.cpp:1970: // ...
4 years, 1 month ago (2016-11-04 22:40:39 UTC) #14
dcheng
The srcdoc stuff is very clever... personally I'd prefer it if we wrote it out ...
4 years, 1 month ago (2016-11-07 22:15:54 UTC) #17
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/2471843005/40001
4 years, 1 month ago (2016-11-07 22:25:04 UTC) #19
pwnall
On 2016/11/07 22:15:54, dcheng wrote: > The srcdoc stuff is very clever... personally I'd prefer ...
4 years, 1 month ago (2016-11-07 22:28:28 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-08 00:07:23 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 00:33:09 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fb74d203dc9797b1e12592cac7c86f1d2b923eab
Cr-Commit-Position: refs/heads/master@{#430432}

Powered by Google App Engine
This is Rietveld 408576698