vendor.js.in 14 KB

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