summaryrefslogtreecommitdiffstats
path: root/testing/profiles/web-platform
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/profiles/web-platform
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/profiles/web-platform')
-rw-r--r--testing/profiles/web-platform/extensions/README.txt2
-rw-r--r--testing/profiles/web-platform/user.js92
2 files changed, 94 insertions, 0 deletions
diff --git a/testing/profiles/web-platform/extensions/README.txt b/testing/profiles/web-platform/extensions/README.txt
new file mode 100644
index 0000000000..9ec618a6aa
--- /dev/null
+++ b/testing/profiles/web-platform/extensions/README.txt
@@ -0,0 +1,2 @@
+Dropping extensions here will get them installed in all test harnesses
+that make use of this profile.
diff --git a/testing/profiles/web-platform/user.js b/testing/profiles/web-platform/user.js
new file mode 100644
index 0000000000..03ca52acb6
--- /dev/null
+++ b/testing/profiles/web-platform/user.js
@@ -0,0 +1,92 @@
+/* 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 for web-platform-tests.
+/* globals user_pref */
+// Don't use the new tab page but about:blank for opened tabs
+user_pref("browser.newtabpage.enabled", false);
+// Don't restore the last open set of tabs if the browser has crashed
+user_pref("browser.sessionstore.resume_from_crash", false);
+// Disable session restore infobar.
+user_pref("browser.startup.couldRestoreSession.count", -1);
+// Don't show the Bookmarks Toolbar on any tab (the above pref that
+// disables the New Tab Page ends up showing the toolbar on about:blank).
+user_pref("browser.toolbars.bookmarks.visibility", "never");
+// Expose TestUtils interface
+user_pref("dom.testing.testutils.enabled", true);
+// 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);
+// Enable fake media streams for getUserMedia
+user_pref("media.navigator.streams.fake", true);
+// Disable permission prompt for getUserMedia
+user_pref("media.navigator.permission.disabled", true);
+// Enable pre-fetching of resources
+user_pref("network.preload", true);
+// 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);
+// Run the font loader task eagerly for more predictable behavior
+user_pref("gfx.font_loader.delay", 0);
+// Disable antialiasing for the Ahem font.
+user_pref("gfx.font_rendering.ahem_antialias_none", true);
+// Disable antiphishing popup
+user_pref("network.http.phishy-userpass-length", 255);
+// 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);
+user_pref("browser.safebrowsing.update.enabled", false);
+// Automatically unload beforeunload alerts
+user_pref("dom.disable_beforeunload", true);
+// Enable implicit keyframes since the common animation interpolation test
+// function assumes this is available.
+user_pref("dom.animations-api.implicit-keyframes.enabled", true);
+// Disable high DPI
+user_pref("layout.css.devPixelsPerPx", "1.0")
+// Enable the parallel styling code.
+user_pref("layout.css.stylo-threads", 4)
+// 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);
+// Disable dark scrollbars as it can be semi-transparent that many reftests
+// don't expect.
+user_pref("widget.disable-dark-scrollbar", true);
+// Don't enable paint suppression when the background is unknown. While paint
+// is suppressed, synthetic click events and co. go to the old page, which can
+// be confusing for tests that send click events before the first paint.
+user_pref("nglayout.initialpaint.unsuppress_with_no_background", true);
+user_pref("media.block-autoplay-until-in-foreground", false);
+// Force a light color scheme unless explicitly overriden by pref.
+user_pref("layout.css.prefers-color-scheme.content-override", 1);
+// Force OffscreenCanvas support
+user_pref("gfx.offscreencanvas.enabled", true);
+user_pref("dom.workers.requestAnimationFrame", true);
+// A lot of tests use the Reporting API for observing things
+user_pref("dom.reporting.enabled", true);
+user_pref("layout.css.font-loading-api.workers.enabled", true);
+// Enable WebDriver BiDi experimental commands and events during tests.
+user_pref("remote.experimental.enabled", true);
+// Disable always partitioning storage with the Storage Access API
+user_pref("privacy.partition.always_partition_third_party_non_cookie_storage", false);
+// Disable OCSP checks in WPT (webtransport triggers these occasionally)
+user_pref("security.OCSP.enabled", 0);
+// Disable download of intermediate certificates.
+user_pref("security.remote_settings.intermediates.enabled", false);
+// Disable prefers-reduced-motion to ensure that smooth scrolls can be tested.
+user_pref("general.smoothScroll", true);
+// Disable captive portal service
+user_pref("network.captive-portal-service.enabled", false);