зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1760259 - [remote] Disable session restore infobar for marionette tests, webplatform tests and geckodriver r=webdriver-reviewers,whimboo
Depends on D141939 Differential Revision: https://phabricator.services.mozilla.com/D141444
This commit is contained in:
Родитель
fe7b050473
Коммит
069f463d7c
|
@ -107,6 +107,9 @@ const COMMON_PREFERENCES = new Map([
|
|||
// as it is picked up at runtime.
|
||||
["browser.shell.checkDefaultBrowser", false],
|
||||
|
||||
// Disable session restore infobar
|
||||
["browser.startup.couldRestoreSession.count", -1],
|
||||
|
||||
// Do not redirect user when a milstone upgrade of Firefox is detected
|
||||
["browser.startup.homepage_override.mstone", "ignore"],
|
||||
|
||||
|
|
|
@ -587,6 +587,8 @@ class DesktopInstance(GeckoInstance):
|
|||
"browser.sessionstore.resume_from_crash": False,
|
||||
# Don't check for the default web browser during startup
|
||||
"browser.shell.checkDefaultBrowser": False,
|
||||
# Disable session restore infobar
|
||||
"browser.startup.couldRestoreSession.count": -1,
|
||||
# Needed for branded builds to prevent opening a second tab on startup
|
||||
"browser.startup.homepage_override.mstone": "ignore",
|
||||
# Start with a blank page by default
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
user_pref("browser.newtabpage.enabled", false);
|
||||
// Don't restore the last open set of tabs if the browser has crashed
|
||||
user_pref("browser.sessionstore.resume_from_crash", false);
|
||||
// Disable session restore infobar.
|
||||
user_pref("browser.startup.couldRestoreSession.count", -1);
|
||||
// Don't show the Bookmarks Toolbar on any tab (the above pref that
|
||||
// disables the New Tab Page ends up showing the toolbar on about:blank).
|
||||
user_pref("browser.toolbars.bookmarks.visibility", "never");
|
||||
|
|
Загрузка…
Ссылка в новой задаче