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

Issue 2372403002: Drag and drop improvements on X11. (Closed)

Created:
4 years, 2 months ago by pwnall
Modified:
4 years, 2 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews, tfarina, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drag and drop improvements on X11. The XDND protocol has a mechanism for a drag source to advertise a list of supported data formats to the drop target, and a separate mechanism for the drop target to retrieve data from the drag source in any desired format. We currently assume that the drag source will be able to provide data in any of the formats it advertises. While reasonable, this assumption breaks due to misbehaving applications. We also deviate from the XDND specification when obtaining data from the drag source, by passing in an incorrect time stamp vaue. This CL combines fixes for the issues described above with the small refactorings to desktop_drag_drop_client_aurax11.cc that facilitated diagnosing and fixing the issues. BUG=628099 TEST=manually ran reproduction steps before/after fix Committed: https://crrev.com/062909083c817c37f3156ba7f28e96d884dc7195 Cr-Commit-Position: refs/heads/master@{#422228}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Documented specs, minor refactorings, fixed 2 bugs. #

Total comments: 2

Patch Set 3 : Addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -85 lines) Patch
M ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc View 1 2 35 chunks +226 lines, -85 lines 0 comments Download

Messages

Total messages: 38 (30 generated)
pwnall
PTAL.
4 years, 2 months ago (2016-09-27 23:32:54 UTC) #4
Elliot Glaysher
https://codereview.chromium.org/2372403002/diff/1/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/2372403002/diff/1/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode335 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:335: // http://crbug.com/628099 Should this be an early return or ...
4 years, 2 months ago (2016-09-27 23:39:11 UTC) #5
pwnall
erg: Thank you very much for the quick and thoughtful review! In order to answer ...
4 years, 2 months ago (2016-09-30 20:02:18 UTC) #24
Elliot Glaysher
lgtm, but please make a more descriptive commit message. https://codereview.chromium.org/2372403002/diff/100001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/2372403002/diff/100001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode61 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:61: ...
4 years, 2 months ago (2016-09-30 20:30:49 UTC) #25
pwnall
Thank you very much for the quick turnaround! https://codereview.chromium.org/2372403002/diff/100001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/2372403002/diff/100001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode61 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:61: constexpr ...
4 years, 2 months ago (2016-09-30 20:58:14 UTC) #27
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/2372403002/120001
4 years, 2 months ago (2016-09-30 21:36:26 UTC) #34
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 2 months ago (2016-09-30 21:42:31 UTC) #36
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 21:44:24 UTC) #38
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/062909083c817c37f3156ba7f28e96d884dc7195
Cr-Commit-Position: refs/heads/master@{#422228}

Powered by Google App Engine
This is Rietveld 408576698