summaryrefslogtreecommitdiffstats
path: root/testing/profiles/perf/user.js
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/perf/user.js
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.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/perf/user.js')
-rw-r--r--testing/profiles/perf/user.js103
1 files changed, 103 insertions, 0 deletions
diff --git a/testing/profiles/perf/user.js b/testing/profiles/perf/user.js
new file mode 100644
index 0000000000..0b168a312b
--- /dev/null
+++ b/testing/profiles/perf/user.js
@@ -0,0 +1,103 @@
+/* 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 performance harnesses
+/* globals user_pref */
+user_pref("app.normandy.api_url", "https://127.0.0.1/selfsupport-dummy/");
+user_pref("browser.EULA.override", true);
+user_pref("browser.addon-watch.interval", -1); // Deactivate add-on watching
+// Disable Bookmark backups by default.
+user_pref("browser.bookmarks.max_backups", 0);
+user_pref("browser.cache.disk.smart_size.enabled", false);
+user_pref("browser.contentHandlers.types.0.uri", "http://127.0.0.1/rss?url=%s");
+user_pref("browser.contentHandlers.types.1.uri", "http://127.0.0.1/rss?url=%s");
+user_pref("browser.contentHandlers.types.2.uri", "http://127.0.0.1/rss?url=%s");
+user_pref("browser.contentHandlers.types.3.uri", "http://127.0.0.1/rss?url=%s");
+user_pref("browser.contentHandlers.types.4.uri", "http://127.0.0.1/rss?url=%s");
+user_pref("browser.contentHandlers.types.5.uri", "http://127.0.0.1/rss?url=%s");
+user_pref("browser.link.open_newwindow", 2);
+user_pref("browser.newtabpage.activity-stream.default.sites", "");
+user_pref("browser.newtabpage.activity-stream.telemetry", false);
+user_pref("browser.reader.detectedFirstArticle", true);
+user_pref("browser.safebrowsing.blockedURIs.enabled", false);
+user_pref("browser.safebrowsing.downloads.enabled", false);
+user_pref("browser.safebrowsing.downloads.remote.url", "http://127.0.0.1/safebrowsing-dummy/downloads");
+user_pref("browser.safebrowsing.malware.enabled", false);
+user_pref("browser.safebrowsing.passwords.enabled", false);
+user_pref("browser.safebrowsing.phishing.enabled", false);
+user_pref("browser.safebrowsing.provider.google.gethashURL", "http://127.0.0.1/safebrowsing-dummy/gethash");
+user_pref("browser.safebrowsing.provider.google.updateURL", "http://127.0.0.1/safebrowsing-dummy/update");
+user_pref("browser.safebrowsing.provider.google4.gethashURL", "http://127.0.0.1/safebrowsing4-dummy/gethash");
+user_pref("browser.safebrowsing.provider.google4.updateURL", "http://127.0.0.1/safebrowsing4-dummy/update");
+user_pref("browser.safebrowsing.provider.mozilla.gethashURL", "http://127.0.0.1/safebrowsing-dummy/gethash");
+user_pref("browser.safebrowsing.provider.mozilla.updateURL", "http://127.0.0.1/safebrowsing-dummy/update");
+user_pref("browser.shell.checkDefaultBrowser", false);
+user_pref("browser.startup.couldRestoreSession.count", -1);
+user_pref("browser.tabs.remote.autostart", true);
+user_pref("browser.warnOnQuit", false);
+user_pref("datareporting.healthreport.documentServerURI", "http://127.0.0.1/healthreport/");
+user_pref("devtools.chrome.enabled", false);
+user_pref("devtools.debugger.remote-enabled", false);
+user_pref("devtools.theme", "light");
+user_pref("devtools.timeline.enabled", false);
+user_pref("dom.allow_scripts_to_close_windows", true);
+user_pref("dom.disable_open_during_load", false);
+user_pref("dom.disable_window_flip", true);
+user_pref("dom.disable_window_move_resize", true);
+user_pref("dom.push.connection.enabled", false);
+user_pref("extensions.autoDisableScopes", 10);
+user_pref("extensions.blocklist.enabled", false);
+user_pref("extensions.checkCompatibility", false);
+user_pref("extensions.getAddons.get.url", "http://127.0.0.1/extensions-dummy/repositoryGetURL");
+user_pref("extensions.getAddons.search.browseURL", "http://127.0.0.1/extensions-dummy/repositoryBrowseURL");
+user_pref("extensions.hotfix.url", "http://127.0.0.1/extensions-dummy/hotfixURL");
+user_pref("extensions.systemAddon.update.url", "http://127.0.0.1/dummy-system-addons.xml");
+user_pref("extensions.update.background.url", "http://127.0.0.1/extensions-dummy/updateBackgroundURL");
+user_pref("extensions.update.notifyUser", false);
+user_pref("extensions.update.url", "http://127.0.0.1/extensions-dummy/updateURL");
+user_pref("identity.fxaccounts.auth.uri", "https://127.0.0.1/fxa-dummy/");
+user_pref("identity.fxaccounts.migrateToDevEdition", false);
+// Avoid idle-daily notifications, to avoid expensive operations that may
+// cause unexpected test timeouts.
+user_pref("idle.lastDailyNotification", -1);
+user_pref("media.capturestream_hints.enabled", true);
+user_pref("media.gmp-manager.url", "http://127.0.0.1/gmpmanager-dummy/update.xml");
+// Don't block old libavcodec libraries when testing, because our test systems
+// cannot easily be upgraded.
+user_pref("media.libavcodec.allow-obsolete", true);
+user_pref("media.navigator.enabled", true);
+user_pref("media.navigator.permission.disabled", true);
+user_pref("media.peerconnection.enabled", true);
+// Disable speculative connections so they aren't reported as leaking when they're hanging around.
+user_pref("network.http.speculative-parallel-limit", 0);
+// Set places maintenance far in the future (the maximum time possible in an
+// int32_t) to avoid it kicking in during tests. The maintenance can take a
+// relatively long time which may cause unnecessary intermittents and slow down
+// tests. This, like many things, will stop working correctly in 2038.
+user_pref("places.database.lastMaintenance", 2147483647);
+user_pref("plugin.state.flash", 0);
+user_pref("privacy.reduceTimerPrecision", false); // Bug 1445243 - reduces precision of tests
+user_pref("privacy.trackingprotection.annotate_channels", false);
+user_pref("privacy.trackingprotection.enabled", false);
+user_pref("privacy.trackingprotection.introURL", "http://127.0.0.1/trackingprotection/tour");
+user_pref("privacy.trackingprotection.pbmode.enabled", false);
+user_pref("security.enable_java", false);
+user_pref("security.fileuri.strict_origin_policy", false);
+user_pref("toolkit.telemetry.server", "https://127.0.0.1/telemetry-dummy/");
+user_pref("telemetry.fog.test.localhost_port", -1);
+// The telemetry system sometimes uses a separate program to send telemetry
+// pings, particularly in the case when Firefox is shutting down. The prefs above
+// prevent telemetry from being sent anywhere useful, but even so the process would
+// still be launched. Because performance tests start and stop the browser in rapid
+// succession, the pingsender calls from the previous test can run simultaneously with
+// the next test, increasing the system resource load and skewing the
+// results. So we just silently skip the pingsender invocation during perf tests.
+user_pref("toolkit.telemetry.testing.suppressPingsender", true);
+user_pref("startup.homepage_welcome_url", "");
+user_pref("startup.homepage_welcome_url.additional", "");
+// Ensures that system principal triggered about:blank load within the current
+// process to avoid performing process switches in the middle of warm load
+// tests (bug 1725270). Can be removed once non-about:blank intermediate pages
+// are used instead (bug 1724261).
+user_pref("browser.tabs.remote.systemTriggeredAboutBlankAnywhere", true);