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

Issue 1762883002: Disable window occlusion APIs when running browser tests (Closed)

Created:
4 years, 9 months ago by ccameron
Modified:
4 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, apacible
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable window occlusion APIs when running browser tests The positioning of windows is not predictable when running tests, and some tests can end up having their renderer processes backgrounded due to occlusion, causing unpredictable behavior. Disable occlusion API use when running tests. Occlusion is a Mac-only API for the moment, but leave this as non-Mac so that it can be picked up if needed. Also, get rid of the "we're on 10.9+" check. We always are now. BUG=558585 Committed: https://crrev.com/19b720a9ad1f5a0ce9e432e275d2a61a15c6ceac Cr-Commit-Position: refs/heads/master@{#379500}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M content/browser/web_contents/web_contents_view_mac.mm View 1 3 chunks +7 lines, -3 lines 0 comments Download
M content/public/common/content_switches.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/test/browser_test_base.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
ccameron
This will unblock the linked bug ... I wonder if it will have any other ...
4 years, 9 months ago (2016-03-03 23:32:16 UTC) #3
Noel Gordon
https://codereview.chromium.org/1762883002/diff/1/content/browser/web_contents/web_contents_view_mac.mm File content/browser/web_contents/web_contents_view_mac.mm (right): https://codereview.chromium.org/1762883002/diff/1/content/browser/web_contents/web_contents_view_mac.mm#newcode642 content/browser/web_contents/web_contents_view_mac.mm:642: // flakily change behavior. "change" - > "change test" ...
4 years, 9 months ago (2016-03-04 01:57:32 UTC) #5
Avi (use Gerrit)
LGTM https://codereview.chromium.org/1762883002/diff/1/content/public/common/content_switches.h File content/public/common/content_switches.h (right): https://codereview.chromium.org/1762883002/diff/1/content/public/common/content_switches.h#newcode38 content/public/common/content_switches.h:38: CONTENT_EXPORT extern const char kDisableBackgroundingOccludedWindows[]; ...ForTesting ?
4 years, 9 months ago (2016-03-04 17:31:38 UTC) #6
ccameron
Thanks! https://codereview.chromium.org/1762883002/diff/1/content/browser/web_contents/web_contents_view_mac.mm File content/browser/web_contents/web_contents_view_mac.mm (right): https://codereview.chromium.org/1762883002/diff/1/content/browser/web_contents/web_contents_view_mac.mm#newcode642 content/browser/web_contents/web_contents_view_mac.mm:642: // flakily change behavior. On 2016/03/04 01:57:32, noel ...
4 years, 9 months ago (2016-03-06 23:09:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1762883002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1762883002/20001
4 years, 9 months ago (2016-03-06 23:09:24 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-07 00:14:45 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/19b720a9ad1f5a0ce9e432e275d2a61a15c6ceac Cr-Commit-Position: refs/heads/master@{#379500}
4 years, 9 months ago (2016-03-07 00:15:55 UTC) #14
Noel Gordon
4 years, 9 months ago (2016-03-07 00:51:59 UTC) #16
LGTM

Powered by Google App Engine
This is Rietveld 408576698