2020-11-17 05:06:54 +03:00
|
|
|
/* 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/. */
|
|
|
|
|
2018-10-26 20:46:03 +03:00
|
|
|
// Base preferences file used by the xpcshell harness
|
|
|
|
/* globals user_pref */
|
2018-10-26 20:47:18 +03:00
|
|
|
/* eslint quotes: 0 */
|
2019-01-21 17:13:56 +03:00
|
|
|
user_pref("app.normandy.api_url", "https://%(server)s/selfsupport-dummy/");
|
2023-05-11 15:04:22 +03:00
|
|
|
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");
|
2019-09-16 19:35:59 +03:00
|
|
|
// Treat WebExtension API/schema warnings as errors.
|
|
|
|
user_pref("extensions.webextensions.warnings-as-errors", true);
|
2018-10-26 20:47:18 +03:00
|
|
|
// Always use network provider for geolocation tests
|
|
|
|
// so we bypass the OSX dialog raised by the corelocation provider
|
|
|
|
user_pref("geo.provider.testing", true);
|
2020-06-04 01:34:40 +03:00
|
|
|
user_pref("browser.region.network.url", "");
|
2020-06-02 03:01:31 +03:00
|
|
|
user_pref("geo.provider.network.compare.url", "");
|
2018-11-14 09:48:29 +03:00
|
|
|
user_pref("media.gmp-manager.updateEnabled", false);
|
2023-05-11 15:04:22 +03:00
|
|
|
user_pref("media.gmp-manager.url.override", "http://%(server)s/dummy-gmp-manager.xml");
|
2019-01-21 17:13:56 +03:00
|
|
|
user_pref("toolkit.telemetry.server", "https://%(server)s/telemetry-dummy");
|
2020-09-09 23:01:06 +03:00
|
|
|
user_pref("telemetry.fog.test.localhost_port", -1);
|
2019-03-09 01:21:40 +03:00
|
|
|
// Prevent Remote Settings to issue non local connections.
|
2023-01-05 17:55:59 +03:00
|
|
|
user_pref("services.settings.server", "data:,#remote-settings-dummy/v1");
|
2019-06-11 13:14:40 +03:00
|
|
|
// Prevent intermediate preloads to be downloaded on Remote Settings polling.
|
|
|
|
user_pref("security.remote_settings.intermediates.enabled", false);
|
2019-01-16 16:20:00 +03:00
|
|
|
// 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);
|
2020-04-10 16:02:55 +03:00
|
|
|
// 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);
|
2021-07-20 23:12:40 +03:00
|
|
|
// Don't enable remote tiles on new-tab pages in xpcshell
|
|
|
|
user_pref("browser.topsites.contile.enabled", false);
|
2023-05-27 06:46:44 +03:00
|
|
|
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);
|