New issue
Advanced search Search tips

Issue 667963 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 2
Type: Bug



Sign in to add a comment

dragend event is sent to the render widget with wrong coordinates

Project Member Reported by lukasza@chromium.org, Nov 23 2016

Issue description

Repro steps:
1. Drag-and-drop while listening to dragend DOM event
2. Note the clientX and clientY coordinates of the dragend DOM event

The issue is that rather than passing (x,y) we pass (x,x) in one place in the code: https://chromium.googlesource.com/chromium/src/+/77fd2aecaa7e1db995e158fb095a72be385e333c/content/browser/web_contents/web_contents_view_aura.cc#565 :

  web_contents_->DragSourceEndedAt(client_loc.x(), client_loc.***x***(),
                                   screen_loc.x(), screen_loc.y(), ops,
                                   drag_start_rwh_.get());
 
Cc: ligim...@chromium.org
M56 Beta promotion is scheduled during the first week of December.It would be great to have a fix ASAP.

Comment 2 by creis@chromium.org, Nov 23 2016

Status: Started (was: Assigned)
Fix is already in the CQ: https://codereview.chromium.org/2530663002/
Project Member

Comment 3 by bugdroid1@chromium.org, Nov 24 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/94c098de407049a62aebef939cb7ce93200a5139

commit 94c098de407049a62aebef939cb7ce93200a5139
Author: paulmeyer <paulmeyer@chromium.org>
Date: Thu Nov 24 00:20:26 2016

Fix for DragEnd event being sent with the wrong coordinates.

This event was accidentally sent with (x, x) instead of (x, y). This
patch corrects this.

BUG= 667963 

Review-Url: https://codereview.chromium.org/2530663002
Cr-Commit-Position: refs/heads/master@{#434295}

[modify] https://crrev.com/94c098de407049a62aebef939cb7ce93200a5139/content/browser/web_contents/web_contents_view_aura.cc

Comment 4 by creis@chromium.org, Nov 24 2016

Status: Fixed (was: Started)
Thanks Paul!  Can you verify this on tomorrow's canary and request a merge?
Labels: Merge-TBD
[Auto-generated comment by a script] We noticed that this issue is targeted for M-56; it appears the fix may have landed after branch point, meaning a merge might be required. Please confirm if a merge is required here - if so add Merge-Request-56 label, otherwise remove Merge-TBD label. Thanks.
Labels: -Merge-TBD Merge-Request-56

Comment 7 by dimu@chromium.org, Nov 24 2016

Labels: -Merge-Request-56 Merge-Approved-56 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M56 (branch: 2924)

Comment 8 by creis@chromium.org, Nov 28 2016

Paul's OOO, so I'll try to merge this.
Project Member

Comment 9 by bugdroid1@chromium.org, Nov 28 2016

Labels: -merge-approved-56 merge-merged-2924
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a6de5ba0b21b7c8021a561e748fd113218d53cea

commit a6de5ba0b21b7c8021a561e748fd113218d53cea
Author: Charles Reis <creis@chromium.org>
Date: Mon Nov 28 20:49:48 2016

Fix for DragEnd event being sent with the wrong coordinates.

This event was accidentally sent with (x, x) instead of (x, y). This
patch corrects this.

BUG= 667963 
TBR=paulmeyer, lukasza, nick

Review-Url: https://codereview.chromium.org/2530663002
Cr-Commit-Position: refs/heads/master@{#434295}
(cherry picked from commit 94c098de407049a62aebef939cb7ce93200a5139)

Review URL: https://codereview.chromium.org/2533953002 .

Cr-Commit-Position: refs/branch-heads/2924@{#126}
Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059}

[modify] https://crrev.com/a6de5ba0b21b7c8021a561e748fd113218d53cea/content/browser/web_contents/web_contents_view_aura.cc

Project Member

Comment 10 by sheriffbot@chromium.org, Dec 16 2016

Labels: Merge-Review-56 Hotlist-Merge-Review
This bug requires manual review: No test file found in commits.
Please contact the milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), gkihumba@(cros), bustamante@(desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 11 by sheriffbot@chromium.org, Dec 16 2016

This bug requires manual review: No test file found in commits.
Please contact the milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), gkihumba@(cros), bustamante@(desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 12 by dimu@google.com, Dec 16 2016

Labels: -Merge-Review-56 -Hotlist-Merge-Review
[Automated comment] removing mislabelled Merge-Review-56, Hotlist-Merge-Review

Sign in to add a comment