user.js (2290B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 // Preferences file used by the raptor harness 6 /* globals user_pref */ 7 // prevents normandy from running updates during the tests 8 user_pref("app.normandy.enabled", false); 9 10 // Avoid the status panel indicating loading state which messes up 11 // screenshots. 12 user_pref("browser.tabs.hideStatusPanel", true); 13 14 user_pref("dom.performance.time_to_non_blank_paint.enabled", true); 15 user_pref("dom.performance.time_to_contentful_paint.enabled", true); 16 user_pref("dom.performance.time_to_first_interactive.enabled", true); 17 18 // required for geckoview logging 19 user_pref("geckoview.console.enabled", true); 20 21 // get the console logging out of the webext into the stdout 22 user_pref("browser.dom.window.dump.enabled", true); 23 user_pref("devtools.console.stdout.chrome", true); 24 user_pref("devtools.console.stdout.content", true); 25 26 // prevent pages from opening after a crash 27 user_pref("browser.sessionstore.resume_from_crash", false); 28 29 // disable the background hang monitor 30 user_pref("toolkit.content-background-hang-monitor.disabled", true); 31 32 // disable async stacks to match release builds 33 // https://developer.mozilla.org/en-US/docs/Mozilla/Benchmarking#Async_Stacks 34 user_pref('javascript.options.asyncstack', false); 35 36 // disable Firefox Telemetry (and some other things too) 37 // https://bugzilla.mozilla.org/show_bug.cgi?id=1533879 38 user_pref('datareporting.healthreport.uploadEnabled', false); 39 40 // Telemetry initialization happens on a delay, that may elapse exactly in the 41 // middle of some raptor tests. While it doesn't do a lot of expensive work, it 42 // causes some I/O and thread creation, that can add noise to performance 43 // profiles we use to analyze performance regressions. 44 // https://bugzilla.mozilla.org/show_bug.cgi?id=1706180 45 user_pref('toolkit.telemetry.initDelay', 99999999); 46 47 // disable autoplay for raptor tests 48 user_pref('media.autoplay.default', 5); 49 user_pref('media.autoplay.blocking_policy', 1); 50 user_pref('media.allowed-to-play.enabled', false); 51 user_pref('media.block-autoplay-until-in-foreground', true); 52 53 // Turn off update 54 user_pref("app.update.disabledForTesting", true);