Commit 97a4425c authored by Julian Descottes's avatar Julian Descottes
Browse files

Bug 1836093 - [remote] Disable browser.translations.enable in automation...

Bug 1836093 - [remote] Disable browser.translations.enable in automation r=webdriver-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D179581
parent d5653aa5
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -71,8 +71,8 @@ if (Services.appinfo.processType != Ci.nsIXULRuntime.PROCESS_TYPE_DEFAULT) {
// - Add the preference to `geckoinstance.py`
// - Add the preference to `geckoinstance.py`
// - If the preference has to be set before startup:
// - If the preference has to be set before startup:
//   - Add the preference to `prefs.rs`
//   - Add the preference to `prefs.rs`
//   - Add the preference `FirefoxLauncher.ts`
//   - Add the preference `browser-data/firefox.ts` in the puppeteer folder
//   - Create a PR to upstream the change on `FirefoxLauncher.ts` to puppeteer
//   - Create a PR to upstream the change on `browser-data/firefox.ts` to puppeteer
// - Otherwise, if the preference can be set after startup:
// - Otherwise, if the preference can be set after startup:
//   - Add the preference to `RecommendedPreferences.sys.mjs`
//   - Add the preference to `RecommendedPreferences.sys.mjs`
const COMMON_PREFERENCES = new Map([
const COMMON_PREFERENCES = new Map([
+4 −0
Original line number Original line Diff line number Diff line
@@ -175,6 +175,10 @@ function defaultProfilePreferences(
    // Do not warn when multiple tabs will be opened
    // Do not warn when multiple tabs will be opened
    'browser.tabs.warnOnOpen': false,
    'browser.tabs.warnOnOpen': false,


    // Disable page translations, which can cause issues with tests.
    // See https://bugzilla.mozilla.org/show_bug.cgi?id=1836093.
    'browser.translations.enable': false,

    // Disable the UI tour.
    // Disable the UI tour.
    'browser.uitour.enabled': false,
    'browser.uitour.enabled': false,
    // Turn off search suggestions in the location bar so as not to trigger
    // Turn off search suggestions in the location bar so as not to trigger
+4 −0
Original line number Original line Diff line number Diff line
@@ -52,6 +52,10 @@ lazy_static! {
        // Start with a blank page (about:blank)
        // Start with a blank page (about:blank)
        ("browser.startup.page", Pref::new(0)),
        ("browser.startup.page", Pref::new(0)),


        // Disable page translations, causing timeouts for wdspec tests in early
        // beta. See Bug 1836093.
        ("browser.translations.enable", Pref::new(false)),

        // Disable the UI tour
        // Disable the UI tour
        ("browser.uitour.enabled", Pref::new(false)),
        ("browser.uitour.enabled", Pref::new(false)),


+3 −0
Original line number Original line Diff line number Diff line
@@ -45,6 +45,9 @@ class GeckoInstance(object):
        "browser.region.network.url": "",
        "browser.region.network.url": "",
        # Don't pull Top Sites content from the network
        # Don't pull Top Sites content from the network
        "browser.topsites.contile.enabled": False,
        "browser.topsites.contile.enabled": False,
        # Disable page translations, causing timeouts for wdspec tests in early
        # beta. See Bug 1836093.
        "browser.translations.enable": False,
        # Disable UI tour
        # Disable UI tour
        "browser.uitour.pinnedTabUrl": "http://%(server)s/uitour-dummy/pinnedTab",
        "browser.uitour.pinnedTabUrl": "http://%(server)s/uitour-dummy/pinnedTab",
        "browser.uitour.url": "http://%(server)s/uitour-dummy/tour",
        "browser.uitour.url": "http://%(server)s/uitour-dummy/tour",