tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

user.js (3763B)


      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 // Base preferences file used by the xpcshell harness
      6 /* globals user_pref */
      7 /* eslint quotes: 0 */
      8 user_pref("app.normandy.api_url", "https://%(server)s/selfsupport-dummy/");
      9 user_pref("browser.safebrowsing.downloads.remote.url", "https://%(server)s/safebrowsing-dummy");
     10 user_pref("extensions.systemAddon.update.url", "http://%(server)s/dummy-system-addons.xml");
     11 // Treat WebExtension API/schema warnings as errors.
     12 user_pref("extensions.webextensions.warnings-as-errors", true);
     13 // Always use network provider for geolocation tests
     14 // so we bypass the OSX dialog raised by the corelocation provider
     15 user_pref("geo.provider.testing", true);
     16 user_pref("browser.region.network.url", "");
     17 user_pref("media.gmp-manager.updateEnabled", false);
     18 user_pref("media.gmp-manager.url.override", "http://%(server)s/dummy-gmp-manager.xml");
     19 user_pref("toolkit.telemetry.server", "https://%(server)s/telemetry-dummy");
     20 // Default Glean to "record but don't report" mode, and to never trigger
     21 // activity-based ping submission. Docs:
     22 // https://firefox-source-docs.mozilla.org/toolkit/components/glean/dev/preferences.html
     23 user_pref("telemetry.fog.test.localhost_port", -1);
     24 user_pref("telemetry.fog.test.activity_limit", -1);
     25 user_pref("telemetry.fog.test.inactivity_limit", -1);
     26 // Prevent Remote Settings to issue non local connections.
     27 user_pref("services.settings.server", "data:,#remote-settings-dummy/v1");
     28 // Prevent intermediate preloads to be downloaded on Remote Settings polling.
     29 user_pref("security.remote_settings.intermediates.enabled", false);
     30 // The process priority manager only shifts priorities when it has at least
     31 // one active tab. xpcshell tabs don't have any active tabs, which would mean
     32 // all processes would run at low priority, which is not desirable, so we
     33 // disable the process priority manager entirely here.
     34 user_pref("dom.ipc.processPriorityManager.enabled", false);
     35 // Bug 455077 - Ensure we use sRGB as the output profile for test consistency.
     36 user_pref("gfx.color_management.force_srgb", true);
     37 user_pref("gfx.color_management.mode", 1);
     38 // Don't enable remote tiles on new-tab pages in xpcshell
     39 user_pref("browser.topsites.contile.enabled", false);
     40 // Don't pull weather data from the network
     41 user_pref("browser.newtabpage.activity-stream.system.showWeather", false);
     42 // Don't pull wallpaper content from the network
     43 user_pref("browser.newtabpage.activity-stream.newtabWallpapers.enabled", false);
     44 // Don't pull sponsored Top Sites content from the network
     45 user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
     46 user_pref("security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", true);
     47 user_pref("preferences.force-disable.check.once.policy", true);
     48 // Turn off update
     49 user_pref("app.update.disabledForTesting", true);
     50 // Better stacks for errors.
     51 user_pref("javascript.options.asyncstack_capture_debuggee_only", false);
     52 
     53 // Disable writing to the ProfileDatastoreService by Nimbus in xpcshell tests.
     54 // TODO(bug 1967779): Require the ProfileDatastoreService by default and remove
     55 // this.
     56 user_pref("nimbus.profilesdatastoreservice.enabled", false);
     57 
     58 // Disable reading from the ProfilesDatastoreService by Nimbus in xpcshell tests.
     59 // TODO(bug 1967779): Require the ProfileDatastoreService by default.
     60 // TODO(bug 1972426): Make this the default and remove this.
     61 user_pref("nimbus.profilesdatastoreservice.read.enabled", false);
     62 
     63 // Turn off semantic history search as it triggers network connections to
     64 // download ML models.
     65 user_pref("places.semanticHistory.featureGate", false);