Bug 1875502 - Disable update by default in all tests r=perftest-reviewers,nalexander,afinder,whimboo,sparky

I really thought this was already the case. It was a bit of a shock to debug a non-update-related test and discover that the failure was because update was just attempting to run normally while the test did something unrelated. In general, we shouldn't have the updater running during tests that aren't testing updater functionality. It cause test failures by contacting the real update url or by throwing errors when attempting to use features that aren't available during that test.

Differential Revision: https://phabricator.services.mozilla.com/D209130
This commit is contained in:
Robin Steuber 2024-05-16 20:01:55 +00:00
parent c288841e23
commit 7844ba490f
13 changed files with 33 additions and 1 deletions

View file

@ -10,4 +10,7 @@ user_pref("dom.input_events.security.minNumTicks", 0);
user_pref("dom.input_events.security.minTimeElapsedInMS", 0);
// Set address autofill to true for tests
user_pref("extensions.formautofill.addresses.experiments.enabled", true);
user_pref("extensions.formautofill.addresses.experiments.enabled", true);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -5,3 +5,6 @@
// Base preferences file used by the mochitest
/* globals user_pref */
/* eslint quotes: 0 */
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -23,6 +23,9 @@ user_pref("general.smoothScroll", true);
// storage access API spec for secure contexts.
user_pref("dom.storage_access.dont_grant_insecure_contexts", false);
// Turn off update
user_pref("app.update.disabledForTesting", true);
// This feature restricts to add history when accessing to web page is too
// frequently, it assumes real human accesses them by clicking and key types.
// Therefore, in the mochitest, as the frequently in common browser tests can be

View file

@ -97,3 +97,5 @@ user_pref("startup.homepage_welcome_url.additional", "");
user_pref("browser.tabs.remote.systemTriggeredAboutBlankAnywhere", true);
// Make sure speech dispatcher notification error does not impact how we measure visual perception in raptor tests
user_pref("media.webspeech.synth.dont_notify_on_error", true);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -9,3 +9,5 @@ user_pref("dom.timeout.enable_budget_timer_throttling", false);
// TODO: Bug 1795750 - Re-enable this pref when we have a new version of the
// Quitter XPI with a simpler version format.
user_pref("extensions.webextensions.warnings-as-errors", false);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -14,3 +14,6 @@ user_pref("extensions.webextensions.warnings-as-errors", false);
// disable telemetry bug 1639148
user_pref("toolkit.telemetry.server", "");
user_pref("telemetry.fog.test.localhost_port", -1);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -51,3 +51,6 @@ user_pref('media.autoplay.ask-permission', true);
user_pref('media.autoplay.blocking_policy', 1);
user_pref('media.allowed-to-play.enabled', false);
user_pref('media.block-autoplay-until-in-foreground', true);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -103,3 +103,5 @@ user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
user_pref("layout.css.prefers-color-scheme.content-override", 1);
// Force OffscreenCanvas support
user_pref("gfx.offscreencanvas.enabled", true);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -26,3 +26,5 @@ user_pref("dom.gamepad.non_standard_events.enabled", true);
// Enable form autofill feature testing.
user_pref("extensions.formautofill.addresses.available", "on");
user_pref("extensions.formautofill.creditCards.available", "on");
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -228,3 +228,6 @@ user_pref("security.data_uri.block_toplevel_data_uri_navigations", false);
// We use data: to tell the Quitter extension to quit.
user_pref("security.data_uri.block_toplevel_data_uri_navigations", false);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -7,3 +7,5 @@
// TODO: Bug 1795750 - Re-enable this pref when we have a new version of the
// Quitter XPI with a simpler version format.
user_pref("extensions.webextensions.warnings-as-errors", false);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -94,3 +94,5 @@ user_pref("security.webauthn.enable_conditional_mediation", true);
user_pref("network.captive-portal-service.enabled", false);
// Enable http2 websockets support
user_pref("network.http.http2.websockets", true);
// Turn off update
user_pref("app.update.disabledForTesting", true);

View file

@ -37,3 +37,5 @@ user_pref("browser.topsites.contile.enabled", false);
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
user_pref("preferences.force-disable.check.once.policy", true);
// Turn off update
user_pref("app.update.disabledForTesting", true);