Bug 1385453 - Disable tab warming in browser_bug343515.js test. r?billm draft
authorMike Conley <mconley@mozilla.com>
Wed, 23 Aug 2017 16:43:55 -0400
changeset 652637 9d194b28c5cdc0d6673350edb3d509462bf445ac
parent 652636 b86d9eff15572f0728d8f755dfe5940dc39cfaed
child 652638 54d5e73083af37ddedc0ad5f886b96121e9c3472
push id76103
push usermconley@mozilla.com
push dateFri, 25 Aug 2017 01:57:10 +0000
reviewersbillm
bugs1385453, 343515
milestone57.0a1
Bug 1385453 - Disable tab warming in browser_bug343515.js test. r?billm MozReview-Commit-ID: 9DOv9drNi9n
docshell/test/navigation/browser_bug343515.js
--- 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);