Bug 1176019 - Fix browser_bug1196539.js painting check r=mconley
☠☠ backed out by 4e08519eb8f0 ☠ ☠
authorDoug Thayer <dothayer@mozilla.com>
Tue, 08 May 2018 09:49:24 -0700
changeset 417804 6c591b484a11318e704bdc9ea0b9b24d51a6ffa3
parent 417803 3e7dbe6b5122796a60ba3073a4f6b5604ac76116
child 417805 31b295f557db579744feb07900a5aa5e145452b0
push id33980
push userebalazs@mozilla.com
push dateFri, 11 May 2018 09:35:12 +0000
treeherdermozilla-central@8e9a4a323f0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1176019, 1196539
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1176019 - Fix browser_bug1196539.js painting check r=mconley MozReview-Commit-ID: HgzcSIdIh1h
dom/plugins/test/mochitest/browser_bug1196539.js
--- a/dom/plugins/test/mochitest/browser_bug1196539.js
+++ b/dom/plugins/test/mochitest/browser_bug1196539.js
@@ -9,16 +9,20 @@ function checkPaintCount(aCount) {
 // animate so this should really be just 1, but operating systems can
 // occasionally fire a few of these so we give these tests a fudge factor.
 // A bad regression would either be 0, or 100+.
 const kMaxPaints = 10;
 
 add_task(async function() {
   let result, tabSwitchedPromise;
 
+  // We want to make sure that we will paint in cases where we need to. The
+  // tab layer cache just gets in the way of measuring that.
+  await SpecialPowers.pushPrefEnv({set: [["browser.tabs.remote.tabCacheSize", 0]]});
+
   setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED, "Test Plug-in");
 
   let testTab = gBrowser.selectedTab;
   let pluginTab = await BrowserTestUtils.openNewForegroundTab(gBrowser, gTestRoot + "plugin_test.html");
   let homeTab = await BrowserTestUtils.openNewForegroundTab(gBrowser, "about:home");
 
   result = await ContentTask.spawn(pluginTab.linkedBrowser, null, async function() {
     let doc = content.document;