Bug 1271330 - Avoid homepage overrides in the default profile; r=davehunt,whimboo a=testonly
authorCuriousLearner <sanyam.khurana01@gmail.com>
Fri, 26 Aug 2016 23:03:46 +0530
changeset 342516 a9ea5a5e86bc2fd6b33b30b8f0efafe84405154d
parent 342515 648de888965df29e719ec58d70479a638b072f68
child 342517 a947fabffdddf831b30352804c3c4b924a3ede1b
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavehunt, whimboo, testonly
bugs1271330
milestone49.0
Bug 1271330 - Avoid homepage overrides in the default profile; r=davehunt,whimboo a=testonly MozReview-Commit-ID: 6vQ5C2x7pEB
testing/marionette/client/marionette_driver/geckoinstance.py
--- a/testing/marionette/client/marionette_driver/geckoinstance.py
+++ b/testing/marionette/client/marionette_driver/geckoinstance.py
@@ -12,16 +12,18 @@ from copy import deepcopy
 from mozprofile import Profile
 from mozrunner import Runner
 
 
 class GeckoInstance(object):
     required_prefs = {
         "browser.sessionstore.resume_from_crash": False,
         "browser.shell.checkDefaultBrowser": False,
+        # Needed for branded builds to prevent opening a second tab on startup
+        "browser.startup.homepage_override.mstone": "ignore",
         "browser.startup.page": 0,
         "browser.tabs.remote.autostart.1": False,
         "browser.tabs.remote.autostart.2": False,
         "browser.tabs.remote.autostart": False,
         "browser.urlbar.userMadeSearchSuggestionsChoice": True,
         "browser.warnOnQuit": False,
         "datareporting.healthreport.logging.consoleEnabled": False,
         "datareporting.healthreport.service.enabled": False,