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

Issue 2577553002: Wait for mousemove DOM event, before simulating mousedown for dragstart tests. (Closed)

Created:
4 years ago by Łukasz Anforowicz
Modified:
4 years ago
Reviewers:
kenrb, lfg
CC:
chromium-reviews, tfarina, dcheng, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Wait for mousemove DOM event, before simulating mousedown for dragstart tests. Waiting until mousemove DOM event is received is important, because otherwise (because of lag introduced by forwarding events between renderers) button-less mousemove event can arrive at the target frame *after* mousedown event (confusing the renderer whether mouse button is held down or not and therefore preventing dragstart from happening). This CL seems to fix the flakiness that used to be locally reproducible with --site-per-process. Right now we consistently pass 20 repetitions of CrossSiteSubframe/DragAndDropBrowserTest.DragImageBetweenFrames/0. BUG=671445 Committed: https://crrev.com/eeb42c523def9bf6d2c514bf403f2cb67117cb8b Cr-Commit-Position: refs/heads/master@{#438583}

Patch Set 1 #

Patch Set 2 : Expanded a comment as suggested by lfg@ (to refer to bug 647378). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M chrome/browser/ui/views/drag_and_drop_interactive_uitest.cc View 1 1 chunk +21 lines, -2 lines 0 comments Download
M chrome/test/data/drag_and_drop/image_source.html View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
Łukasz Anforowicz
lfg@, can you PTAL? This CL waits until cross-renderer forwarding of input events settles down, ...
4 years ago (2016-12-14 01:48:13 UTC) #4
lfg
+kenrb On 2016/12/14 01:48:13, Łukasz Anforowicz wrote: > lfg@, can you PTAL? This CL waits ...
4 years ago (2016-12-14 16:00:47 UTC) #8
Łukasz Anforowicz
On 2016/12/14 16:00:47, lfg wrote: > +kenrb > > On 2016/12/14 01:48:13, Łukasz Anforowicz wrote: ...
4 years ago (2016-12-14 17:34:06 UTC) #9
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/2577553002/20001
4 years ago (2016-12-14 19:03:53 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-14 19:22:53 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-14 19:25:47 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/eeb42c523def9bf6d2c514bf403f2cb67117cb8b
Cr-Commit-Position: refs/heads/master@{#438583}

Powered by Google App Engine
This is Rietveld 408576698