2018-09-06 09:44:52 +03:00
|
|
|
// Base preferences file for web-platform-tests.
|
|
|
|
/* globals user_pref */
|
2020-07-22 18:08:11 +03:00
|
|
|
// Don't use the new tab page but about:blank for opened tabs
|
|
|
|
user_pref("browser.newtabpage.enabled", false);
|
2018-09-06 09:44:52 +03:00
|
|
|
// Don't restore the last open set of tabs if the browser has crashed
|
|
|
|
user_pref("browser.sessionstore.resume_from_crash", false);
|
|
|
|
// Only install add-ons from the profile and the application scope
|
|
|
|
// Also ensure that those are not getting disabled.
|
|
|
|
// see: https://developer.mozilla.org/en/Installing_extensions
|
|
|
|
user_pref("extensions.autoDisableScopes", 10);
|
|
|
|
// Don't open a dialog to show available add-on updates
|
|
|
|
user_pref("extensions.update.notifyUser", false);
|
|
|
|
// Enable test mode to run multiple tests in parallel
|
|
|
|
user_pref("focusmanager.testmode", true);
|
2018-09-24 19:33:14 +03:00
|
|
|
// Enable fake media streams for getUserMedia
|
|
|
|
user_pref("media.navigator.streams.fake", true);
|
2020-05-07 16:52:56 +03:00
|
|
|
// Enable pre-fetching of resources
|
|
|
|
user_pref("network.preload", true);
|
2018-09-06 09:44:52 +03:00
|
|
|
// Enable direct connection
|
|
|
|
user_pref("network.proxy.type", 0);
|
|
|
|
// Web-platform-tests load a lot of URLs very quickly. This puts avoidable and
|
|
|
|
// unnecessary I/O pressure on the Places DB (measured to be in the
|
|
|
|
// gigabytes).
|
|
|
|
user_pref("places.history.enabled", false);
|
|
|
|
// Suppress automatic safe mode after crashes
|
|
|
|
user_pref("toolkit.startup.max_resumed_crashes", -1);
|
2018-09-19 13:17:13 +03:00
|
|
|
// Disable antialiasing for the Ahem font.
|
2019-08-07 23:46:04 +03:00
|
|
|
user_pref("gfx.font_rendering.ahem_antialias_none", true);
|
2018-11-07 14:38:51 +03:00
|
|
|
// Disable antiphishing popup
|
|
|
|
user_pref("network.http.phishy-userpass-length", 255);
|
2018-11-30 18:31:46 +03:00
|
|
|
// Disable safebrowsing components
|
|
|
|
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
|
|
|
user_pref("browser.safebrowsing.downloads.enabled", false);
|
|
|
|
user_pref("browser.safebrowsing.passwords.enabled", false);
|
|
|
|
user_pref("browser.safebrowsing.malware.enabled", false);
|
|
|
|
user_pref("browser.safebrowsing.phishing.enabled", false);
|
|
|
|
// Automatically unload beforeunload alerts
|
|
|
|
user_pref("dom.disable_beforeunload", true);
|
2019-09-25 07:20:58 +03:00
|
|
|
// Enable implicit keyframes since the common animation interpolation test
|
|
|
|
// function assumes this is available.
|
|
|
|
user_pref("dom.animations-api.implicit-keyframes.enabled", true);
|
2019-12-03 14:20:24 +03:00
|
|
|
// Disable high DPI
|
|
|
|
user_pref("layout.css.devPixelsPerPx", "1.0")
|
2019-05-24 03:40:55 +03:00
|
|
|
// sometime wpt runs test even before the document becomes visible, which would
|
|
|
|
// delay video.play() and cause play() running in wrong order.
|
|
|
|
user_pref("media.block-autoplay-until-in-foreground", false);
|
2019-10-24 00:00:28 +03:00
|
|
|
// Disable dark scrollbars as it can be semi-transparent that many reftests
|
|
|
|
// don't expect.
|
|
|
|
user_pref("widget.disable-dark-scrollbar", true);
|
2019-10-21 22:33:02 +03:00
|
|
|
user_pref("media.block-autoplay-until-in-foreground", false);
|
|
|
|
// Enable AppCache globally for now whilst it's being removed in Bug 1584984
|
|
|
|
user_pref("browser.cache.offline.storage.enable", true);
|
|
|
|
user_pref("browser.cache.offline.enable", true);
|
2020-04-30 10:29:25 +03:00
|
|
|
// Enable blocking access to storage from tracking resources by default.
|
|
|
|
// We don't want to run WPT using BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN (5 - aka Dynamic First Party Isolation) yet.
|
|
|
|
user_pref("network.cookie.cookieBehavior", 4);
|