Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # Default Preferences |
michael@0 | 2 | # Tor Browser Bundle |
michael@0 | 3 | # Do not edit this file. |
michael@0 | 4 | |
michael@0 | 5 | // Please maintain unit tests at ./tbb-tests/browser_tor_TB4.js |
michael@0 | 6 | |
michael@0 | 7 | // Disable browser automatic updates and associated homepage notifications |
michael@0 | 8 | pref("app.update.auto", false); |
michael@0 | 9 | pref("browser.search.update", false); |
michael@0 | 10 | pref("browser.rights.3.shown", true); |
michael@0 | 11 | pref("browser.startup.homepage_override.mstone", "ignore"); |
michael@0 | 12 | pref("startup.homepage_welcome_url", ""); |
michael@0 | 13 | pref("startup.homepage_override_url", ""); |
michael@0 | 14 | |
michael@0 | 15 | // Disable "Slow startup" warnings and associated disk history |
michael@0 | 16 | // (bug #13346) |
michael@0 | 17 | pref("browser.slowStartup.notificationDisabled", true); |
michael@0 | 18 | pref("browser.slowStartup.maxSamples", 0); |
michael@0 | 19 | pref("browser.slowStartup.samples", 0); |
michael@0 | 20 | |
michael@0 | 21 | // Disk activity: Disable Browsing History Storage |
michael@0 | 22 | pref("browser.privatebrowsing.autostart", true); |
michael@0 | 23 | pref("browser.cache.disk.enable", false); |
michael@0 | 24 | pref("browser.cache.offline.enable", false); |
michael@0 | 25 | pref("dom.indexedDB.enabled", false); |
michael@0 | 26 | pref("permissions.memory_only", true); |
michael@0 | 27 | pref("network.cookie.lifetimePolicy", 2); |
michael@0 | 28 | pref("browser.download.manager.retention", 1); |
michael@0 | 29 | pref("security.nocertdb", true); |
michael@0 | 30 | |
michael@0 | 31 | // Disk activity: TBB Directory Isolation |
michael@0 | 32 | pref("browser.download.useDownloadDir", false); |
michael@0 | 33 | pref("browser.shell.checkDefaultBrowser", false); |
michael@0 | 34 | pref("browser.download.manager.addToRecentDocs", false); |
michael@0 | 35 | |
michael@0 | 36 | // Misc privacy: Disk |
michael@0 | 37 | pref("signon.rememberSignons", false); |
michael@0 | 38 | pref("browser.formfill.enable", false); |
michael@0 | 39 | pref("signon.autofillForms", false); |
michael@0 | 40 | pref("browser.sessionstore.privacy_level", 2); |
michael@0 | 41 | pref("media.cache_size", 0); |
michael@0 | 42 | |
michael@0 | 43 | // Misc privacy: Remote |
michael@0 | 44 | pref("browser.send_pings", false); |
michael@0 | 45 | pref("geo.enabled", false); |
michael@0 | 46 | pref("geo.wifi.uri", ""); |
michael@0 | 47 | pref("browser.search.suggest.enabled", false); |
michael@0 | 48 | pref("browser.safebrowsing.enabled", false); |
michael@0 | 49 | pref("browser.safebrowsing.malware.enabled", false); |
michael@0 | 50 | pref("browser.download.manager.scanWhenDone", false); // prevents AV remote reporting of downloads |
michael@0 | 51 | pref("extensions.ui.lastCategory", "addons://list/extension"); |
michael@0 | 52 | pref("datareporting.healthreport.service.enabled", false); // Yes, all three of these must be set |
michael@0 | 53 | pref("datareporting.healthreport.uploadEnabled", false); |
michael@0 | 54 | pref("datareporting.policy.dataSubmissionEnabled", false); |
michael@0 | 55 | pref("security.mixed_content.block_active_content", false); // Disable until https://bugzilla.mozilla.org/show_bug.cgi?id=878890 is patched |
michael@0 | 56 | pref("browser.syncPromoViewsLeftMap", "{\"addons\":0, \"passwords\":0, \"bookmarks\":0}"); // Don't promote sync |
michael@0 | 57 | pref("services.sync.engine.prefs", false); // Never sync prefs, addons, or tabs with other browsers |
michael@0 | 58 | pref("services.sync.engine.addons", false); |
michael@0 | 59 | pref("services.sync.engine.tabs", false); |
michael@0 | 60 | pref("extensions.getAddons.cache.enabled", false); // https://blog.mozilla.org/addons/how-to-opt-out-of-add-on-metadata-updates/ |
michael@0 | 61 | |
michael@0 | 62 | // Fingerprinting |
michael@0 | 63 | pref("webgl.min_capability_mode", true); |
michael@0 | 64 | pref("webgl.disable-extensions", true); |
michael@0 | 65 | pref("dom.battery.enabled", false); // fingerprinting due to differing OS implementations |
michael@0 | 66 | pref("dom.network.enabled",false); // fingerprinting due to differing OS implementations |
michael@0 | 67 | pref("browser.display.max_font_attempts",10); |
michael@0 | 68 | pref("browser.display.max_font_count",10); |
michael@0 | 69 | pref("gfx.downloadable_fonts.fallback_delay", -1); |
michael@0 | 70 | pref("general.appname.override", "Netscape"); |
michael@0 | 71 | pref("general.appversion.override", "5.0 (Windows)"); |
michael@0 | 72 | pref("general.oscpu.override", "Windows NT 6.1"); |
michael@0 | 73 | pref("general.platform.override", "Win32"); |
michael@0 | 74 | pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0"); |
michael@0 | 75 | pref("general.productSub.override", "20100101"); |
michael@0 | 76 | pref("general.buildID.override", "20100101"); |
michael@0 | 77 | pref("browser.startup.homepage_override.buildID", "20100101"); |
michael@0 | 78 | pref("general.useragent.vendor", ""); |
michael@0 | 79 | pref("general.useragent.vendorSub", ""); |
michael@0 | 80 | pref("dom.enable_performance", false); |
michael@0 | 81 | pref("plugin.expose_full_path", false); |
michael@0 | 82 | pref("browser.zoom.siteSpecific", false); |
michael@0 | 83 | pref("intl.charset.default", "windows-1252"); |
michael@0 | 84 | pref("browser.link.open_newwindow.restriction", 0); // Bug 9881: Open popups in new tabs (to avoid fullscreen popups) |
michael@0 | 85 | pref("dom.gamepad.enabled", false); // bugs.torproject.org/13023 |
michael@0 | 86 | // pref("intl.accept_languages", "en-us, en"); // Set by Torbutton |
michael@0 | 87 | // pref("intl.accept_charsets", "iso-8859-1,*,utf-8"); // Set by Torbutton |
michael@0 | 88 | // pref("intl.charsetmenu.browser.cache", "UTF-8"); // Set by Torbutton |
michael@0 | 89 | |
michael@0 | 90 | // Third party stuff |
michael@0 | 91 | pref("network.cookie.cookieBehavior", 1); |
michael@0 | 92 | pref("security.enable_tls_session_tickets", false); |
michael@0 | 93 | pref("network.http.spdy.enabled", false); // Stores state and may have keepalive issues (both fixable) |
michael@0 | 94 | pref("network.http.spdy.enabled.v2", false); // Seems redundant, but just in case |
michael@0 | 95 | pref("network.http.spdy.enabled.v3", false); // Seems redundant, but just in case |
michael@0 | 96 | pref("privacy.thirdparty.isolate", 2); // Always enforce third party isolation |
michael@0 | 97 | |
michael@0 | 98 | // Proxy and proxy security |
michael@0 | 99 | pref("network.proxy.socks", "127.0.0.1"); |
michael@0 | 100 | pref("network.proxy.socks_port", 9150); |
michael@0 | 101 | pref("network.proxy.socks_remote_dns", true); |
michael@0 | 102 | pref("network.proxy.no_proxies_on", ""); // For fingerprinting and local service vulns (#10419) |
michael@0 | 103 | pref("network.proxy.type", 1); |
michael@0 | 104 | pref("network.security.ports.banned", "9050,9051,9150,9151"); |
michael@0 | 105 | pref("network.dns.disablePrefetch", true); |
michael@0 | 106 | pref("network.protocol-handler.external-default", false); |
michael@0 | 107 | pref("network.protocol-handler.external.mailto", false); |
michael@0 | 108 | pref("network.protocol-handler.external.news", false); |
michael@0 | 109 | pref("network.protocol-handler.external.nntp", false); |
michael@0 | 110 | pref("network.protocol-handler.external.snews", false); |
michael@0 | 111 | pref("network.protocol-handler.warn-external.mailto", true); |
michael@0 | 112 | pref("network.protocol-handler.warn-external.news", true); |
michael@0 | 113 | pref("network.protocol-handler.warn-external.nntp", true); |
michael@0 | 114 | pref("network.protocol-handler.warn-external.snews", true); |
michael@0 | 115 | pref("plugins.click_to_play", true); |
michael@0 | 116 | pref("plugin.state.flash", 1); |
michael@0 | 117 | pref("plugins.hide_infobar_for_missing_plugin", true); |
michael@0 | 118 | pref("media.peerconnection.enabled", false); // Disable WebRTC interfaces |
michael@0 | 119 | |
michael@0 | 120 | // Network and performance |
michael@0 | 121 | pref("network.http.pipelining", true); |
michael@0 | 122 | pref("network.http.pipelining.aggressive", true); |
michael@0 | 123 | pref("network.http.pipelining.maxrequests", 12); |
michael@0 | 124 | pref("network.http.pipelining.ssl", true); |
michael@0 | 125 | pref("network.http.proxy.pipelining", true); |
michael@0 | 126 | pref("security.ssl.enable_false_start", true); |
michael@0 | 127 | pref("network.http.keep-alive.timeout", 20); |
michael@0 | 128 | pref("network.http.connection-retry-timeout", 0); |
michael@0 | 129 | pref("network.http.max-persistent-connections-per-proxy", 256); |
michael@0 | 130 | pref("network.http.pipelining.reschedule-timeout", 15000); |
michael@0 | 131 | pref("network.http.pipelining.read-timeout", 60000); |
michael@0 | 132 | // Hacked pref: Now means "Attempt to pipeline at least this many requests together" |
michael@0 | 133 | pref("network.http.pipelining.max-optimistic-requests", 3); |
michael@0 | 134 | pref("security.ssl.disable_session_identifiers", true); |
michael@0 | 135 | |
michael@0 | 136 | // Extension support |
michael@0 | 137 | pref("extensions.autoDisableScopes", 0); |
michael@0 | 138 | pref("extensions.bootstrappedAddons", "{}"); |
michael@0 | 139 | pref("extensions.checkCompatibility.4.*", false); |
michael@0 | 140 | pref("extensions.databaseSchema", 3); |
michael@0 | 141 | pref("extensions.enabledAddons", "https-everywhere%40eff.org:3.1.4,%7B73a6fe31-595d-460b-a920-fcc0f8843232%7D:2.6.6.1,torbutton%40torproject.org:1.5.2,ubufox%40ubuntu.com:2.6,tor-launcher%40torproject.org:0.1.1pre-alpha,%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:17.0.5"); |
michael@0 | 142 | pref("extensions.enabledItems", "langpack-en-US@firefox.mozilla.org:,{73a6fe31-595d-460b-a920-fcc0f8843232}:1.9.9.57,{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}:1.2.4,{972ce4c6-7e08-4474-a285-3208198ce6fd}:3.5.8"); |
michael@0 | 143 | pref("extensions.enabledScopes", 1); |
michael@0 | 144 | pref("extensions.pendingOperations", false); |
michael@0 | 145 | pref("xpinstall.whitelist.add", ""); |
michael@0 | 146 | pref("xpinstall.whitelist.add.36", ""); |
michael@0 | 147 | |
michael@0 | 148 | // Toolbar layout |
michael@0 | 149 | pref("browser.uiCustomization.state", "{\"placements\":{\"PanelUI-contents\":[\"edit-controls\",\"zoom-controls\",\"new-window-button\",\"save-page-button\",\"print-button\",\"bookmarks-menu-button\",\"history-panelmenu\",\"find-button\",\"preferences-button\",\"add-ons-button\",\"developer-button\",\"https-everywhere-button\",\"downloads-button\"],\"addon-bar\":[\"addonbar-closebutton\",\"status-bar\"],\"PersonalToolbar\":[\"personal-bookmarks\"],\"nav-bar\":[\"noscript-tbb\",\"torbutton-button\",\"urlbar-container\",\"search-container\",\"webrtc-status-button\",\"social-share-button\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"toolbar-menubar\":[\"menubar-items\"]},\"seen\":[],\"dirtyAreaCache\":[\"PersonalToolbar\",\"nav-bar\",\"TabsToolbar\",\"toolbar-menubar\",\"PanelUI-contents\",\"addon-bar\"],\"newElementCount\":0}"); |
michael@0 | 150 | |
michael@0 | 151 | // Omnibox settings |
michael@0 | 152 | pref("keyword.URL", "https://startpage.com/do/search?q="); |
michael@0 | 153 | |
michael@0 | 154 | // Hacks/workarounds: Direct2D seems to crash w/ lots of video cards w/ MinGW? |
michael@0 | 155 | // Nvida cards also experience crashes without the second pref set to disabled |
michael@0 | 156 | pref("gfx.direct2d.disabled", true); |
michael@0 | 157 | pref("layers.acceleration.disabled", true); |
michael@0 | 158 | |
michael@0 | 159 | // Security enhancements |
michael@0 | 160 | // https://trac.torproject.org/projects/tor/ticket/9387#comment:17 |
michael@0 | 161 | pref("javascript.options.ion.content", false); |
michael@0 | 162 | pref("javascript.options.baselinejit.content", false); |
michael@0 | 163 | pref("javascript.options.asmjs", false); |
michael@0 | 164 | pref("javascript.options.typeinference", false); |
michael@0 | 165 | |
michael@0 | 166 | // Audio_data is deprecated in future releases, but still present |
michael@0 | 167 | // in FF24. This is a dangerous combination (spotted by iSec) |
michael@0 | 168 | pref("media.audio_data.enabled", false); |
michael@0 | 169 | |
michael@0 | 170 | // Enable TLS 1.1 and 1.2: |
michael@0 | 171 | // https://trac.torproject.org/projects/tor/ticket/11253 |
michael@0 | 172 | pref("security.tls.version.max", 3); |
michael@0 | 173 | |
michael@0 | 174 | #ifdef TOR_BROWSER_VERSION |
michael@0 | 175 | #expand pref("torbrowser.version", __TOR_BROWSER_VERSION__); |
michael@0 | 176 | #endif |