summaryrefslogtreecommitdiffstats
path: root/testing/profiles/raptor
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/profiles/raptor
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/profiles/raptor')
-rw-r--r--testing/profiles/raptor/extensions/README.txt2
-rw-r--r--testing/profiles/raptor/user.js53
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/profiles/raptor/extensions/README.txt b/testing/profiles/raptor/extensions/README.txt
new file mode 100644
index 0000000000..9ec618a6aa
--- /dev/null
+++ b/testing/profiles/raptor/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/raptor/user.js b/testing/profiles/raptor/user.js
new file mode 100644
index 0000000000..dc82a29def
--- /dev/null
+++ b/testing/profiles/raptor/user.js
@@ -0,0 +1,53 @@
+/* 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/. */
+
+// Preferences file used by the raptor harness
+/* globals user_pref */
+// prevents normandy from running updates during the tests
+user_pref("app.normandy.enabled", false);
+
+user_pref("dom.performance.time_to_non_blank_paint.enabled", true);
+user_pref("dom.performance.time_to_contentful_paint.enabled", true);
+user_pref("dom.performance.time_to_dom_content_flushed.enabled", true);
+user_pref("dom.performance.time_to_first_interactive.enabled", true);
+
+// required for geckoview logging
+user_pref("geckoview.console.enabled", true);
+
+// required to prevent non-local access to push.services.mozilla.com
+user_pref("dom.push.connection.enabled", false);
+
+// get the console logging out of the webext into the stdout
+user_pref("browser.dom.window.dump.enabled", true);
+user_pref("devtools.console.stdout.chrome", true);
+user_pref("devtools.console.stdout.content", true);
+
+// prevent pages from opening after a crash
+user_pref("browser.sessionstore.resume_from_crash", false);
+
+// disable the background hang monitor
+user_pref("toolkit.content-background-hang-monitor.disabled", true);
+
+// disable async stacks to match release builds
+// https://developer.mozilla.org/en-US/docs/Mozilla/Benchmarking#Async_Stacks
+user_pref('javascript.options.asyncstack', false);
+
+// disable Firefox Telemetry (and some other things too)
+// https://bugzilla.mozilla.org/show_bug.cgi?id=1533879
+user_pref('datareporting.healthreport.uploadEnabled', false);
+
+// Telemetry initialization happens on a delay, that may elapse exactly in the
+// middle of some raptor tests. While it doesn't do a lot of expensive work, it
+// causes some I/O and thread creation, that can add noise to performance
+// profiles we use to analyze performance regressions.
+// https://bugzilla.mozilla.org/show_bug.cgi?id=1706180
+user_pref('toolkit.telemetry.initDelay', 99999999);
+
+// disable autoplay for raptor tests
+user_pref('media.autoplay.default', 5);
+user_pref('media.autoplay.ask-permission', true);
+user_pref('media.autoplay.blocking_policy', 1);
+user_pref('media.autoplay.block-webaudio', true);
+user_pref('media.allowed-to-play.enabled', false);
+user_pref('media.block-autoplay-until-in-foreground', true);