user.js (1778B)
1 // Base preferences file used by the mochitest 2 /* globals user_pref */ 3 /* eslint quotes: 0 */ 4 5 // Don't restore the last open set of tabs if the browser has crashed 6 // or if the profile folder is re-used after an exit(0) fast shutdown. 7 user_pref("browser.sessionstore.resume_from_crash", false); 8 9 // Better stacks for errors. 10 user_pref("javascript.options.asyncstack_capture_debuggee_only", false); 11 12 // Disable prefers-reduced-motion to ensure that smooth scrolls can be tested. 13 user_pref("general.smoothScroll", true); 14 15 // Disable secure context pref for testing storage access API. 16 // Related Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1840902. 17 // Plan to remove this pref since all tests must be compliant with the 18 // storage access API spec for secure contexts. 19 user_pref("dom.storage_access.dont_grant_insecure_contexts", false); 20 21 // Many mochitests rely upon this behavior (which is being deprecated) 22 // while testing other behaviors. We plan to update all tests to not 23 // rely upon it, remove this pref, then roll out to release. 24 user_pref("privacy.restrict3rdpartystorage.heuristic.window_open", true); 25 26 // Turn off update 27 user_pref("app.update.disabledForTesting", true); 28 29 // This feature restricts to add history when accessing to web page is too 30 // frequently, it assumes real human accesses them by clicking and key types. 31 // Therefore, in the mochitest, as the frequently in common browser tests can be 32 // super higher than the real user, we disable this feature. 33 user_pref("places.history.floodingPrevention.enabled", false); 34 35 // If we are on a platform where we can detect that we don't have OS geolocation 36 // permission, and we can open it and wait for the user to give permission, then 37 // don't do that. 38 user_pref("geo.prompt.open_system_prefs", false);