// Base preferences file used by the mochitest
/* globals user_pref */
/* eslint quotes: 0 */
// Don't restore the last open set of tabs if the browser has crashed
// or if the profile folder is re-used after an exit(0) fast shutdown.
user_pref(
"browser.sessionstore.resume_from_crash",
false);
// Better stacks for errors.
user_pref(
"javascript.options.asyncstack_capture_debuggee_only",
false);
// Disable prefers-reduced-motion to ensure that smooth scrolls can be tested.
user_pref(
"general.smoothScroll",
true);
// Disable secure context pref for testing storage access API.
// Related Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1840902.
// Plan to remove this pref since all tests must be compliant with the
// storage access API spec for secure contexts.
user_pref(
"dom.storage_access.dont_grant_insecure_contexts",
false);
// Many mochitests rely upon this behavior (which is being deprecated)
// while testing other behaviors. We plan to update all tests to not
// rely upon it, remove this pref, then roll out to release.
user_pref(
"privacy.restrict3rdpartystorage.heuristic.window_open",
true);
// Turn off update
user_pref(
"app.update.disabledForTesting",
true);
// This feature restricts to add history when accessing to web page is too
// frequently, it assumes real human accesses them by clicking and key types.
// Therefore, in the mochitest, as the frequently in common browser tests can be
// super higher than the real user, we disable this feature.
user_pref(
"places.history.floodingPrevention.enabled",
false);
// If we are on a platform where we can detect that we don't have OS geolocation
// permission, and we can open it and wait for the user to give permission, then
// don't do that.
user_pref(
"geo.prompt.open_system_prefs",
false);
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-08)
¤
*© Formatika GbR, Deutschland