diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /toolkit/components/backgroundtasks/defaults/backgroundtasks.js | |
parent | Initial commit. (diff) | |
download | firefox-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 'toolkit/components/backgroundtasks/defaults/backgroundtasks.js')
-rw-r--r-- | toolkit/components/backgroundtasks/defaults/backgroundtasks.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/toolkit/components/backgroundtasks/defaults/backgroundtasks.js b/toolkit/components/backgroundtasks/defaults/backgroundtasks.js new file mode 100644 index 0000000000..297cdce5b9 --- /dev/null +++ b/toolkit/components/backgroundtasks/defaults/backgroundtasks.js @@ -0,0 +1,43 @@ +/* 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/. */ + +// These preferences override Gecko preferences in `greprefs.js`. Use +// `backgroundtasks_browser.js` to override browser/-specific preferences in +// `firefox.js`. + +pref("browser.dom.window.dump.enabled", true); +pref("devtools.console.stdout.chrome", true); + +pref("browser.cache.offline.enable", false); +pref("browser.cache.disk.enable", false); +pref("permissions.memory_only", true); + +// For testing only: used to test that backgroundtask-specific prefs are +// processed. This just needs to be an unusual integer in the range 0..127. +pref("test.backgroundtask_specific_pref.exitCode", 79); + +// Enable the browser toolbox by default. The browser toolbox is available only +// when launching the background task with `--jsdebugger` on the command line, +// and an attacker who can launch background task processes with arbitrary +// parameters and execution environment can already access this functionality, +// so there's no need to restrict access via preferences. +pref("devtools.chrome.enabled", true); +pref("devtools.debugger.remote-enabled", true); +pref("devtools.debugger.prompt-connection", false); + +// Background tasks do not persist the cookie database: they should +// not be using cookies for network requests. +pref("network.cookie.noPersistentStorage", true); + +// Background tasks don't need to worry about perceived performance. We disable +// fast shutdown to reduce the risk of open file handles preventing cleanup of +// the ephemeral profile directory. +pref("toolkit.shutdown.fastShutdownStage", 0); + +// Avoid a race between initializing font lists and rapid shutdown, +// particularly on macOS. Compare Bug 1777332. +pref("gfx.font-list-omt.enabled", false); + +// Prevent key#.db and cert#.db from being created in the ephemeral profile. +pref("security.nocertdb", true); |