Bug 1385453 - Disable tab warming in browser_bug343515.js test. r?billm
MozReview-Commit-ID: 9DOv9drNi9n
--- a/docshell/test/navigation/browser_bug343515.js
+++ b/docshell/test/navigation/browser_bug343515.js
@@ -33,18 +33,23 @@ function waitForPageshow(aBrowser, callb
}
// Entry point from Mochikit
function test() {
// Lots of callbacks going on here
waitForExplicitFinish();
- // Begin the test
- step1();
+ // Begin the test. First, we disable tab warming because it's
+ // possible for the mouse to be over one of the tabs during
+ // this test, warm it up, and cause this test to fail intermittently
+ // in automation.
+ SpecialPowers.pushPrefEnv({
+ set: [["browser.tabs.remote.warmup.enabled", false]],
+ }).then(step1);
}
function step1() {
// Get a handle on the initial tab
ctx.tab0 = gBrowser.selectedTab;
ctx.tab0Browser = gBrowser.getBrowserForTab(ctx.tab0);