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

Issue 2756183003: X11: Fix test flakes related to window focus (Closed)

Created:
3 years, 9 months ago by Tom (Use chromium acct)
Modified:
3 years, 9 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

X11: Fix test flakes related to window focus This CL removes code intended to fix "some tests depending on a window being IsActive() immediately after an Activate()". After https://codereview.chromium.org/2630773002, all of these cases should be using WidgetActivationWaiter, so this is unnecessary. This was causing DCHECK(!is_active || window_mapped_in_server_) to fail. In addition, XSetInputFocus on an unmapped window will fail, so supress the error in this case. This is the same thing GTK does https://github.com/GNOME/gtk/blob/7ade6e3f4668220f0fa1382944a87e63691ad9ad/gdk/x11/gdkwindow-x11.c#L1904 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_dbg_ng BUG=701722, 701921, 701706, 701485, 701484, 700692, 700683, 700661, 701886 R=erg@chromium.org Review-Url: https://codereview.chromium.org/2756183003 Cr-Commit-Position: refs/heads/master@{#457859} Committed: https://chromium.googlesource.com/chromium/src/+/9b35aa2cb18ff78d6cfc843f0e9414ccb6c22150

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
Tom (Use chromium acct)
erg ptal This should fix some flakiness on dbg builds after https://codereview.chromium.org/2630773002
3 years, 9 months ago (2017-03-17 18:38:21 UTC) #4
Elliot Glaysher
lgtm (also, you write really good change descriptions. thanks for putting all the details there.)
3 years, 9 months ago (2017-03-17 19:26:43 UTC) #5
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/2756183003/1
3 years, 9 months ago (2017-03-17 19:30:44 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 19:46:13 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9b35aa2cb18ff78d6cfc843f0e94...

Powered by Google App Engine
This is Rietveld 408576698