vendor.js.in 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. /*\
  2. |*| Parabola additions to vendor.js
  3. |*|
  4. |*| TODO: Go through this and figure out what's nescessary, remove
  5. |*| most of it. For example, some of these settings no longer exist.
  6. |*| Some of these settings don't do anything on GNU/Linux systems.
  7. |*| However, they don't seem to be causing any of the critical issues.
  8. \*/
  9. // Google Widevine DRM
  10. // https://blog.mozilla.org/futurereleases/2016/04/08/mozilla-to-test-widevine-cdm-in-firefox-nightly/
  11. // https://wiki.mozilla.org/QA/Widevine_CDM
  12. // https://bugzilla.mozilla.org/show_bug.cgi?id=1288580
  13. pref("media.gmp-widevinecdm.visible", false);
  14. pref("media.gmp-widevinecdm.enabled", false);
  15. pref("media.gmp-widevinecdm.autoupdate", false);
  16. // Default sites for about:newtab
  17. pref("browser.newtabpage.activity-stream.default.sites", "https://wiki.parabola.nu/,https://labs.parabola.nu/,https://www.gnu.org/,https://libreplanet.org/,https://www.wikipedia.org/");
  18. // Poodle attack
  19. pref("security.tls.version.min", 1);
  20. // Don't call home for blacklisting
  21. pref("extensions.blocklist.enabled", false);
  22. // Disable plugin installer
  23. pref("plugins.hide_infobar_for_missing_plugin", true);
  24. pref("plugins.hide_infobar_for_outdated_plugin", true);
  25. pref("plugins.notifyMissingFlash", false);
  26. //https://developer.mozilla.org/en-US/docs/Web/API/MediaSource
  27. //pref("media.mediasource.enabled",true);
  28. // Speeding it up
  29. pref("network.http.pipelining", true);
  30. pref("network.http.proxy.pipelining", true);
  31. pref("network.http.pipelining.maxrequests", 10);
  32. pref("nglayout.initialpaint.delay", 0);
  33. // Disable third party cookies
  34. pref("network.cookie.cookieBehavior", 1);
  35. // Prevent EULA dialog to popup on first run
  36. pref("browser.EULA.override", true);
  37. // Spoof the useragent to a generic one
  38. // people tend to agree that this was a bad idea
  39. // these are the default values (same as arch):
  40. // pref("general.useragent.compatMode.firefox", false);
  41. // pref("general.useragent.override", "Mozilla/5.0 (X11; Linux @_ARCH_@; rv:@_SHORTVER_@) Gecko/20100101 Firefox/@_SHORTVER_@");
  42. // pref("general.appname.override", "Netscape"); // deprecated
  43. // pref("general.appCodeName.override", "Mozilla"); // deprecated
  44. // pref("general.appversion.override", "@_SHORTVER_@"); // deprecated
  45. // pref("general.buildID.override", "Gecko/20100101"); // deprecated
  46. // pref("general.oscpu.override", "Linux @_ARCH_@"); // deprecated
  47. // pref("general.platform.override", "Linux @_ARCH_@"); // deprecated
  48. // pref("general.product.override", "Gecko"); // deprecated
  49. // Privacy & Freedom Issues
  50. // https://webdevelopmentaid.wordpress.com/2013/10/21/customize-privacy-settings-in-mozilla-firefox-part-1-aboutconfig/
  51. // https://panopticlick.eff.org
  52. // http://ip-check.info
  53. // http://browserspy.dk
  54. // https://wiki.mozilla.org/Fingerprinting
  55. // http://www.browserleaks.com
  56. // http://fingerprint.pet-portal.eu
  57. pref("privacy.donottrackheader.enabled", true);
  58. pref("privacy.donottrackheader.value", 1);
  59. pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
  60. // CIS 2.1.1 Disable Auto Update / Balrog
  61. pref("app.update.auto", false);
  62. pref("app.update.checkInstallTime", false);
  63. pref("app.update.enabled", false);
  64. pref("app.update.staging.enabled", false);
  65. pref("app.update.url", "about:blank");
  66. pref("media.gmp-manager.certs.1.commonName", "");
  67. pref("media.gmp-manager.certs.2.commonName", "");
  68. // Disable Gecko media plugins: https://wiki.mozilla.org/GeckoMediaPlugins
  69. pref("media.gmp-manager.url", "http://127.0.0.1/");
  70. pref("media.gmp-manager.url.override", "data:text/plain,");
  71. pref("media.gmp-provider.enabled", false);
  72. // Don't install openh264 codec
  73. pref("media.gmp-gmpopenh264.enabled", false);
  74. pref("media.gmp-eme-adobe.enabled", false);
  75. pref("media.peerconnection.video.h264_enabled", false);
  76. // CIS 2.3.4 Block Reported Web Forgeries
  77. // http://kb.mozillazine.org/Browser.safebrowsing.enabled
  78. // http://kb.mozillazine.org/Safe_browsing
  79. // https://support.mozilla.org/en-US/kb/how-does-phishing-and-malware-protection-work
  80. // http://forums.mozillazine.org/viewtopic.php?f=39&t=2711237&p=12896849#p12896849
  81. pref("browser.safebrowsing.enabled", false);
  82. // CIS 2.3.5 Block Reported Attack Sites
  83. // http://kb.mozillazine.org/Browser.safebrowsing.malware.enabled
  84. pref("browser.safebrowsing.malware.enabled", false);
  85. // Disable safe browsing remote lookups for downloaded files.
  86. // This leaks information to google.
  87. // https://www.mozilla.org/en-US/firefox/39.0/releasenotes/
  88. // https://wiki.mozilla.org/Security/Application_Reputation
  89. pref("browser.safebrowsing.downloads.remote.enabled", false);
  90. pref("browser.safebrowsing.appRepURL", "about:blank");
  91. pref("browser.safebrowsing.provider.mozilla.gethashURL", "about:blank");
  92. pref("browser.safebrowsing.provider.mozilla.updateURL", "about:blank");
  93. pref("browser.safebrowsing.downloads.remote.block_dangerous", false);
  94. pref("browser.safebrowsing.downloads.remote.block_dangerous_host", false);
  95. pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
  96. pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
  97. pref("browser.safebrowsing.downloads.remote.enabled", false);
  98. pref("browser.safebrowsing.downloads.remote.url", "about:blank");
  99. pref("browser.safebrowsing.provider.google.gethashURL", "about:blank");
  100. pref("browser.safebrowsing.provider.google.updateURL", "about:blank");
  101. pref("browser.safebrowsing.provider.google.lists", "about:blank");
  102. // https://bugzilla.mozilla.org/show_bug.cgi?id=1025965
  103. pref("browser.safebrowsing.phishing.enabled", false);
  104. pref("browser.safebrowsing.provider.google4.lists", "about:blank");
  105. pref("browser.safebrowsing.provider.google4.updateURL", "about:blank");
  106. pref("browser.safebrowsing.provider.google4.gethashURL", "about:blank");
  107. pref("browser.safebrowsing.provider.google4.reportURL", "about:blank");
  108. pref("browser.safebrowsing.provider.mozilla.lists", "about:blank");
  109. // Disable Microsoft Family Safety MiTM support
  110. // https://bugzilla.mozilla.org/show_bug.cgi?id=1239166
  111. // https://wiki.mozilla.org/SecurityEngineering/Untrusted_Certificates_in_Windows_Child_Mode
  112. // https://hg.mozilla.org/releases/mozilla-release/file/ddb37c386bb2ffa180117b4d30ca3b41a8af233c/security/manager/ssl/nsNSSComponent.cpp#l782
  113. pref("security.family_safety.mode", 0);
  114. // https://bugzilla.mozilla.org/show_bug.cgi?id=1265113
  115. // https://hg.mozilla.org/releases/mozilla-release/rev/d9659c22b3c5
  116. // https://bugzilla.mozilla.org/show_bug.cgi?id=1298883
  117. pref("security.enterprise_roots.enabled", false);
  118. //pref("services.sync.privacyURL", "https://www.gnu.org/software/gnuzilla/");
  119. pref("social.enabled", false);
  120. pref("social.remote-install.enabled", false);
  121. pref("social.toast-notifications.enabled", false);
  122. pref("browser.slowStartup.notificationDisabled", true);
  123. pref("network.http.sendRefererHeader", 2);
  124. //pref("network.http.referer.spoofSource", true);
  125. //http://grack.com/blog/2010/01/06/3rd-party-cookies-dom-storage-and-privacy/
  126. //pref("dom.storage.enabled", false);
  127. pref("dom.event.clipboardevents.enabled",false);
  128. pref("network.prefetch-next", false);
  129. pref("network.dns.disablePrefetch", true);
  130. pref("network.http.sendSecureXSiteReferrer", false);
  131. pref("toolkit.telemetry.archive.enabled", false);
  132. pref("toolkit.telemetry.bhrPing.enabled", false);
  133. pref("toolkit.telemetry.enabled", false);
  134. pref("toolkit.telemetry.unified", false);
  135. pref("toolkit.telemetry.newProfilePing.enabled", false);
  136. pref("toolkit.telemetry.firstShutdownPing.enabled", false);
  137. pref("toolkit.telemetry.server", "127.0.0.1");
  138. pref("toolkit.telemetry.server_owner", "User");
  139. pref("app.shield.optoutstudies.enabled", false);
  140. pref("experiments.enabled", false);
  141. pref("experiments.manifest.uri", "127.0.0.1");
  142. pref("extensions.pocket.enabled", false);
  143. pref("extensions.pocket.api", "127.0.0.1");
  144. // Do not tell what plugins do we have enabled: https://mail.mozilla.org/pipermail/firefox-dev/2013-November/001186.html
  145. pref("plugins.enumerable_names", "");
  146. pref("plugin.state.flash", 0);
  147. // Do not autoupdate search engines
  148. pref("browser.search.update", false);
  149. // Warn when the page tries to redirect or refresh
  150. //pref("accessibility.blockautorefresh", true);
  151. pref("dom.battery.enabled", false);
  152. pref("device.sensors.enabled", false);
  153. pref("camera.control.face_detection.enabled", false);
  154. pref("camera.control.autofocus_moving_callback.enabled", false);
  155. pref("network.http.speculative-parallel-limit", 0);
  156. // No search suggestions
  157. pref("browser.urlbar.userMadeSearchSuggestionsChoice", true);
  158. pref("browser.search.suggest.enabled", false);
  159. // Crypto hardening
  160. // https://gist.github.com/haasn/69e19fc2fe0e25f3cff5
  161. // General settings
  162. //pref("security.tls.unrestricted_rc4_fallback", false);
  163. //pref("security.tls.insecure_fallback_hosts.use_static_list", false);
  164. //pref("security.tls.version.min", 1);
  165. //pref("security.ssl.require_safe_negotiation", true);
  166. //pref("security.ssl.treat_unsafe_negotiation_as_broken", true);
  167. //pref("security.ssl3.rsa_seed_sha", true);
  168. //pref("security.OCSP.enabled", 1);
  169. //pref("security.OCSP.require", true);
  170. // WebRTC
  171. //pref("media.peerconnection.enabled", false);
  172. pref("media.peerconnection.ice.default_address_only", true);
  173. pref("font.default.x-western", "sans-serif");
  174. // URL for the 'Find more search engines' link in about:preferences#search
  175. pref("browser.search.searchEnginesURL", "https://directory.fsf.org/wiki/Collection:Search_engines");
  176. // Mobile
  177. pref("privacy.announcements.enabled", false);
  178. pref("browser.snippets.enabled", false);
  179. pref("browser.snippets.syncPromo.enabled", false);
  180. pref("identity.mobilepromo.android", "https://f-droid.org/repository/browse/?fdid=org.gnu.icecat&");
  181. pref("browser.snippets.geoUrl", "http://127.0.0.1/");
  182. pref("browser.snippets.updateUrl", "http://127.0.0.1/");
  183. pref("browser.snippets.statsUrl", "http://127.0.0.1/");
  184. pref("browser.webapps.checkForUpdates", 0);
  185. pref("browser.webapps.updateCheckUrl", "http://127.0.0.1/");
  186. pref("app.faqURL", "http://libreplanet.org/wiki/Group:IceCat/FAQ");
  187. // PFS url
  188. pref("pfs.datasource.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%");
  189. pref("pfs.filehint.url", "http://gnuzilla.gnu.org/plugins/PluginFinderService.php?mimetype=%PLUGIN_MIMETYPE%");
  190. // Disable heartbeat
  191. pref("browser.selfsupport.url", "");
  192. // Disable Link to FireFox Marketplace, currently loaded with non-free "apps"
  193. pref("browser.apps.URL", "");
  194. // Use old style preferences, that allow javascript to be disabled
  195. pref("browser.preferences.inContent",false);
  196. // Don't download ads for the newtab page
  197. pref("browser.newtabpage.directory.source", "");
  198. pref("browser.newtabpage.directory.ping", "");
  199. pref("browser.newtabpage.introShown", true);
  200. // Disable home snippets
  201. pref("browser.aboutHomeSnippets.updateUrl", "data:text/html");
  202. // Disable hardware acceleration and WebGL
  203. //pref("layers.acceleration.disabled", false);
  204. pref("webgl.disabled", false);
  205. // Disable SSDP
  206. pref("browser.casting.enabled", false);
  207. // Disable directory service
  208. pref("social.directories", "");
  209. pref("social.whitelist", "");
  210. pref("social.shareDirectory", "");
  211. // Disable Pocket integration
  212. pref("browser.pocket.api", "about:blank");
  213. pref("browser.pocket.enabled", false);
  214. pref("browser.pocket.enabledLocales", "about:blank");
  215. pref("browser.pocket.oAuthConsumerKey", "about:blank");
  216. pref("browser.pocket.site", "about:blank");
  217. pref("browser.pocket.useLocaleList", false);
  218. pref("extensions.pocket.enabled", false);
  219. // Do not require xpi extensions to be signed by Mozilla
  220. pref("xpinstall.signatures.required", false);
  221. // Disable File and Directory Entries API (Imported from Edge/Chromium)
  222. // https://developer.mozilla.org/en-US/Firefox/Releases/50#Files_and_directories
  223. // https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API
  224. // https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API/Introduction
  225. // https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API/Firefox_support
  226. // https://bugzilla.mozilla.org/show_bug.cgi?id=1265767
  227. pref("dom.webkitBlink.filesystem.enabled", false);
  228. // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory
  229. // https://bugzilla.mozilla.org/show_bug.cgi?id=1258489
  230. // https://hg.mozilla.org/releases/mozilla-release/rev/133af19777be
  231. pref("dom.webkitBlink.dirPicker.enabled", false);
  232. // Directory Upload API, webkitdirectory
  233. // https://bugzilla.mozilla.org/show_bug.cgi?id=1188880
  234. // https://bugzilla.mozilla.org/show_bug.cgi?id=907707
  235. // https://wicg.github.io/directory-upload/proposal.html
  236. pref("dom.input.dirpicker", false);
  237. // fix alsa sound sandbox issue for iceweasel-58
  238. // https://labs.parabola.nu/issues/1628
  239. pref("security.sandbox.content.syscall_whitelist", "16");
  240. // Disable "Recommend extensions as you browse" in about:preferences#general
  241. pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
  242. // Make extensions work on Mozilla domains
  243. pref("extensions.webextensions.restrictedDomains", "");
  244. pref("privacy.resistFingerprinting.block_mozAddonManager", true);
  245. // Disable 'What's New' gift icon in toolbar and main menu.
  246. // It shows downloaded news that sometimes contain links to non-free software like mobile Firefox.
  247. pref("browser.messaging-system.whatsNewPanel.enabled", false);
  248. // Disable 'Recommendations' section in about:addons
  249. // Related to: https://labs.parabola.nu/issues/2409
  250. pref("extensions.getAddons.showPane", false);
  251. // Disable some bits of Normandy, subsystem that allows Mozilla to make changes remotely.
  252. // Should be already disabled by setting MOZ_NORMANDY to False in build configuration.
  253. // Setting these preferences just in case and to not frustrate users.
  254. pref("app.normandy.api_url", "http://127.0.0.1/");
  255. pref("app.normandy.enabled", false);
  256. // enable "sync" feature
  257. pref("webchannel.allowObject.urlWhitelist", "https://content.cdn.mozilla.net https://support.mozilla.org https://install.mozilla.org https://accounts.firefox.com");