Bug 1506643 - [marionette] Disable "about:newtab" page, and always load "about:blank". r=ato a=test-only
authorHenrik Skupin <mail@hskupin.info>
Mon, 12 Nov 2018 19:59:45 +0000
changeset 501178 fd2d2838220419e3e2682889598cfcded38211fd
parent 501177 5336b29e9db097a82a4222e6332ba16063e9836e
child 501179 c1babc4f5dfc82eaf9edf4377c87d029dd6564c1
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato, test-only
bugs1506643
milestone64.0
Bug 1506643 - [marionette] Disable "about:newtab" page, and always load "about:blank". r=ato a=test-only Differential Revision: https://phabricator.services.mozilla.com/D11691
testing/marionette/client/marionette_driver/geckoinstance.py
testing/marionette/components/marionette.js
--- a/testing/marionette/client/marionette_driver/geckoinstance.py
+++ b/testing/marionette/client/marionette_driver/geckoinstance.py
@@ -509,16 +509,19 @@ class DesktopInstance(GeckoInstance):
 
         # Indicate that the download panel has been shown once so that whichever
         # download test runs first doesn"t show the popup inconsistently
         "browser.download.panel.shown": True,
 
         # Do not show the EULA notification which can interfer with tests
         "browser.EULA.override": True,
 
+        # Always display a blank page
+        "browser.newtabpage.enabled": False,
+
         # Background thumbnails in particular cause grief, and disabling thumbnails
         # in general can"t hurt - we re-enable them when tests need them
         "browser.pagethumbnails.capturing_disabled": True,
 
         # Disable safebrowsing components
         "browser.safebrowsing.blockedURIs.enabled": False,
         "browser.safebrowsing.downloads.enabled": False,
         "browser.safebrowsing.passwords.enabled": False,
--- a/testing/marionette/components/marionette.js
+++ b/testing/marionette/components/marionette.js
@@ -82,16 +82,19 @@ const RECOMMENDED_PREFS = new Map([
   // We use a larger number than the default 22 to have some buffer
   ["browser.contentblocking.introCount", 99],
 
   // Indicate that the download panel has been shown once so that
   // whichever download test runs first doesn't show the popup
   // inconsistently.
   ["browser.download.panel.shown", true],
 
+  // Always display a blank page
+  ["browser.newtabpage.enabled", false],
+
   // Background thumbnails in particular cause grief, and disabling
   // thumbnails in general cannot hurt
   ["browser.pagethumbnails.capturing_disabled", true],
 
   // Disable safebrowsing components.
   //
   // These should also be set in the profile prior to starting Firefox,
   // as it is picked up at runtime.
@@ -113,19 +116,16 @@ 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],
 
   // Do not redirect user when a milstone upgrade of Firefox is detected
   ["browser.startup.homepage_override.mstone", "ignore"],
 
-  // Disable browser animations (tabs, fullscreen, sliding alerts)
-  ["toolkit.cosmeticAnimations.enabled", false],
-
   // Do not close the window when the last tab gets closed
   ["browser.tabs.closeWindowWithLastTab", false],
 
   // Do not allow background tabs to be zombified on Android, otherwise for
   // tests that open additional tabs, the test harness tab itself might get
   // unloaded
   ["browser.tabs.disableBackgroundZombification", false],
 
@@ -256,16 +256,19 @@ const RECOMMENDED_PREFS = new Map([
   // Disable password capture, so that tests that include forms are not
   // influenced by the presence of the persistent doorhanger notification
   ["signon.rememberSignons", false],
 
   // Disable first-run welcome page
   ["startup.homepage_welcome_url", "about:blank"],
   ["startup.homepage_welcome_url.additional", ""],
 
+  // Disable browser animations (tabs, fullscreen, sliding alerts)
+  ["toolkit.cosmeticAnimations.enabled", false],
+
   // Prevent starting into safe mode after application crashes
   ["toolkit.startup.max_resumed_crashes", -1],
 
 ]);
 
 const isRemote = Services.appinfo.processType ==
     Services.appinfo.PROCESS_TYPE_CONTENT;