Bug 1506643 - [marionette] Disable "about:newtab" page, and always load "about:blank". r=ato
authorHenrik Skupin <mail@hskupin.info>
Mon, 12 Nov 2018 19:59:45 +0000
changeset 445930 88fb9e85339cb0de54bae6da11cfd8ec390eec46
parent 445929 22834ab21180ef200695b0264c3027c2d5301ea9
child 445931 de5d9f1a6e4ab3345720fe0840295100d953423a
push id72829
push userhskupin@mozilla.com
push dateMon, 12 Nov 2018 20:01:21 +0000
treeherderautoland@88fb9e85339c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1506643
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1506643 - [marionette] Disable "about:newtab" page, and always load "about:blank". r=ato 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
@@ -76,16 +76,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.
@@ -107,19 +110,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],
 
@@ -250,16 +250,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;