summaryrefslogtreecommitdiffstats
path: root/testing/profiles/xpcshell/user.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /testing/profiles/xpcshell/user.js
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--testing/profiles/xpcshell/user.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/profiles/xpcshell/user.js b/testing/profiles/xpcshell/user.js
new file mode 100644
index 0000000000..e8478064c2
--- /dev/null
+++ b/testing/profiles/xpcshell/user.js
@@ -0,0 +1,38 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// Base preferences file used by the xpcshell harness
+/* globals user_pref */
+/* eslint quotes: 0 */
+user_pref("app.normandy.api_url", "https://%(server)s/selfsupport-dummy/");
+user_pref("browser.safebrowsing.downloads.remote.url", "https://%(server)s/safebrowsing-dummy");
+user_pref("extensions.systemAddon.update.url", "http://%(server)s/dummy-system-addons.xml");
+// Treat WebExtension API/schema warnings as errors.
+user_pref("extensions.webextensions.warnings-as-errors", true);
+// Always use network provider for geolocation tests
+// so we bypass the OSX dialog raised by the corelocation provider
+user_pref("geo.provider.testing", true);
+user_pref("browser.region.network.url", "");
+user_pref("geo.provider.network.compare.url", "");
+user_pref("media.gmp-manager.updateEnabled", false);
+user_pref("media.gmp-manager.url.override", "http://%(server)s/dummy-gmp-manager.xml");
+user_pref("toolkit.telemetry.server", "https://%(server)s/telemetry-dummy");
+user_pref("telemetry.fog.test.localhost_port", -1);
+// Prevent Remote Settings to issue non local connections.
+user_pref("services.settings.server", "http://localhost/remote-settings-dummy/v1");
+// Prevent intermediate preloads to be downloaded on Remote Settings polling.
+user_pref("security.remote_settings.intermediates.enabled", false);
+// The process priority manager only shifts priorities when it has at least
+// one active tab. xpcshell tabs don't have any active tabs, which would mean
+// all processes would run at low priority, which is not desirable, so we
+// disable the process priority manager entirely here.
+user_pref("dom.ipc.processPriorityManager.enabled", false);
+// Avoid idle-daily notifications, to avoid expensive operations that may
+// cause unexpected test timeouts.
+user_pref("idle.lastDailyNotification", -1);
+// XXX: Bug 1617611 - Fix all the tests broken by "cookies SameSite=Lax by default"
+user_pref("network.cookie.sameSite.laxByDefault", false);
+// Bug 455077 - Ensure we use sRGB as the output profile for test consistency.
+user_pref("gfx.color_management.force_srgb", true);
+user_pref("gfx.color_management.mode", 1);