Bug 1351422 - Prevent redirect on Firefox upgrade in automation; r=maja_zf, a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 28 Mar 2017 19:50:33 +0100
changeset 395558 83f38ac8d51ab9967b4a31f26ee0a5f5ce2b361d
parent 395557 7d66958d9a4c45f95cec90e9a92032ef834cf1f1
child 395559 5a62abf930744d1de55f855293aa78f18d144269
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, test-only
bugs1351422
milestone54.0a2
Bug 1351422 - Prevent redirect on Firefox upgrade in automation; r=maja_zf, a=test-only This preference should have been part of the recommended automation preferences when the set was first installed. This recitfies the omission by not causing the browser to redirect the user to an upgrade website when a milestone upgrade of Firefox is detected. MozReview-Commit-ID: ACUeJ2vPhl9
testing/marionette/server.js
--- a/testing/marionette/server.js
+++ b/testing/marionette/server.js
@@ -118,16 +118,19 @@ const RECOMMENDED_PREFS = new Map([
   //
   // These should also be set in the profile prior to starting Firefox,
   // as it is picked up at runtime.
   ["browser.shell.checkDefaultBrowser", false],
 
   // Start with a blank page (about:blank)
   ["browser.startup.page", 0],
 
+  // Do not redirect user when a milstone upgrade of Firefox is detected
+  ["browser.startup.homepage_override.mstone", "ignore"],
+
   // Disable tab animation
   ["browser.tabs.animate", false],
 
   // Do not allow background tabs to be zombified, otherwise for tests
   // that open additional tabs, the test harness tab itself might get
   // unloaded
   ["browser.tabs.disableBackgroundZombification", false],