Bug 1351422 - Prevent redirect on Firefox upgrade in automation; r?maja_zf draft
authorAndreas Tolfsen <ato@mozilla.com>
Tue, 28 Mar 2017 19:50:33 +0100
changeset 552587 62184082bc4da887f951ce8deb2a7ef53c1b8536
parent 552546 0e0eb96528a1d032fe6ed54f67d32290d533fbfd
child 621853 673e1053b0b189d17ff40cdd4e64ffef6431da2b
push id51394
push userbmo:ato@mozilla.com
push dateTue, 28 Mar 2017 18:52:26 +0000
reviewersmaja_zf
bugs1351422
milestone55.0a1
Bug 1351422 - Prevent redirect on Firefox upgrade in automation; r?maja_zf 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],