Bug 1176019 - Fix browser_bug1196539.js painting check r?mconley
MozReview-Commit-ID: HgzcSIdIh1h
--- 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;