Bug 1401129 - Restore browser.newtabpage.introShown for automation tools. r?whimboo
The browser.newtabpage.introShown preference was removed in
bug
1433133 but this patch restores it to the number of automation
tools in tree that target out-of-tree release channels.
MozReview-Commit-ID: ENPpP3ARhYa
--- a/testing/geckodriver/src/prefs.rs
+++ b/testing/geckodriver/src/prefs.rs
@@ -1,12 +1,12 @@
use mozprofile::preferences::Pref;
lazy_static! {
- pub static ref DEFAULT: [(&'static str, Pref); 81] = [
+ pub static ref DEFAULT: [(&'static str, Pref); 82] = [
// Disable automatic downloading of new releases
("app.update.auto", Pref::new(false)),
// Disable automatically upgrading Firefox
("app.update.enabled", Pref::new(false)),
// Increase the APZ content response timeout in tests to 1
// minute. This is to accommodate the fact that test environments
@@ -31,16 +31,23 @@ lazy_static! {
("browser.EULA.override", Pref::new(true)),
// use about:blank as new tab page
("browser.newtabpage.enabled", Pref::new(false)),
// Never start the browser in offline mode
("browser.offline", Pref::new(false)),
+ // Assume the about:newtab pages intro panels have been shown
+ // to not depend on which test runs first and happens to open
+ // about:newtab.
+ //
+ // Removed in Firefox 60.
+ ("browser.newtabpage.introShown", Pref::new(true)),
+
// Background thumbnails in particular cause grief, and disabling
// thumbnails in general cannot hurt
("browser.pagethumbnails.capturing_disabled", Pref::new(true)),
// Avoid performing Reader Mode intros during tests
("browser.reader.detectedFirstArticle", Pref::new(true)),
// Disable safebrowsing components
--- a/testing/marionette/client/marionette_driver/geckoinstance.py
+++ b/testing/marionette/client/marionette_driver/geckoinstance.py
@@ -497,16 +497,22 @@ class DesktopInstance(GeckoInstance):
"browser.download.panel.shown": True,
# Do not show the EULA notification which can interfer with tests
"browser.EULA.override": True,
# Turn off about:newtab and make use of about:blank instead for new opened tabs
"browser.newtabpage.enabled": False,
+ # Assume the about:newtab page's intro panels have been shown to not depend on
+ # which test runs first and happens to open about:newtab.
+ #
+ # Removed in Firefox 60.
+ "browser.newtabpage.introShown": True,
+
# 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,