diff options
Diffstat (limited to 'nonprism/iceweasel-hardened-preferences/iceweasel-branding.js')
-rw-r--r-- | nonprism/iceweasel-hardened-preferences/iceweasel-branding.js | 62 |
1 files changed, 59 insertions, 3 deletions
diff --git a/nonprism/iceweasel-hardened-preferences/iceweasel-branding.js b/nonprism/iceweasel-hardened-preferences/iceweasel-branding.js index 120fa2543..daa92b859 100644 --- a/nonprism/iceweasel-hardened-preferences/iceweasel-branding.js +++ b/nonprism/iceweasel-hardened-preferences/iceweasel-branding.js @@ -1,6 +1,8 @@ /****************************************************************************** - * user.js * - * https://github.com/pyllyukko/user.js * + * user.js * + * Adapted from... * + * https://github.com/pyllyukko/user.js * + * https://github.com/The-OP/Fox/tree/master/prefs * ******************************************************************************/ /***************************************************************************** @@ -71,6 +73,7 @@ pref("services.kinto.base", ""); // https://hg.mozilla.org/releases/mozilla-beta/file/00bcc10b3bdc/dom/presentation/provider/MulticastDNSDeviceProvider.cpp#l18 pref("dom.presentation.discovery.enabled", false); pref("dom.presentation.discoverable", false); +pref("dom.presentation.discovery.legacy.enabled", false); // http://kb.mozillazine.org/Dom.storage.enabled // http://dev.w3.org/html5/webstorage/#dom-localstorage @@ -161,6 +164,7 @@ pref("dom.indexedDB.enabled", false); // Disable gamepad input // http://www.w3.org/TR/gamepad/ pref("dom.gamepad.enabled", false); +pref("dom.gamepad.test.enabled", false); // Disable virtual reality devices // https://developer.mozilla.org/en-US/Firefox/Releases/36#Interfaces.2FAPIs.2FDOM @@ -196,8 +200,42 @@ pref("webgl.disabled", true); pref("webgl.enable-debug-renderer-info", false); pref("webgl.disable-extensions", false); pref("webgl.min_capability_mode", true); +pref("webgl.disable-wgl", true); +pref("webgl.enable-webgl2", false); // somewhat related... -pref("pdfjs.enableWebGL", false); +pref("pdfjs.enableWebGL", false); + +// Disable File and Directory Entries API (Imported from Edge/Chromium) +// https://developer.mozilla.org/en-US/Firefox/Releases/50#Files_and_directories +// https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API +// https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API/Introduction +// https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API/Firefox_support +// https://bugzilla.mozilla.org/show_bug.cgi?id=1265767 +pref("dom.webkitBlink.filesystem.enabled", false); +// https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory +// https://bugzilla.mozilla.org/show_bug.cgi?id=1258489 +// https://hg.mozilla.org/releases/mozilla-release/rev/133af19777be +pref("dom.webkitBlink.dirPicker.enabled", false); + +// Directory Upload API, webkitdirectory +// https://bugzilla.mozilla.org/show_bug.cgi?id=1188880 +// https://bugzilla.mozilla.org/show_bug.cgi?id=907707 +// https://wicg.github.io/directory-upload/proposal.html +pref("dom.input.dirpicker", false); + +// Disable FlyWeb +// http://www.ghacks.net/2016/07/26/firefox-flyweb/ +// https://www.reddit.com/r/firefox/comments/4uwd1n/flyweb_we_dont_need_no_stinking_iot_apps/ +// https://hg.mozilla.org/releases/mozilla-release/rev/576019c74103 +// https://hg.mozilla.org/releases/mozilla-release/file/8dc18bf5abac/browser/extensions/flyweb/bootstrap.js#l36 +pref("dom.flyweb.enabled", false); + + +// Disable Pointer Lock API. +// https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API +// https://bugzilla.mozilla.org/show_bug.cgi?id=1273351 + pref("full-screen-api.pointer-lock.enabled", false); +pref("pointer-lock-api.prefixed.enabled", false); /****************************************************************************** * Misc * @@ -286,6 +324,7 @@ pref("browser.urlbar.filter.javascript", true); pref("javascript.options.asmjs", false); // https://hacks.mozilla.org/2016/03/a-webassembly-milestone/ pref("javascript.options.wasm", false); +pref("javascript.options.wasm_baselinejit", false); // https://trac.torproject.org/projects/tor/ticket/9387#comment:43 pref("javascript.options.typeinference", false); pref("javascript.options.baselinejit.content", false); @@ -547,6 +586,20 @@ pref("browser.safebrowsing.provider.google.gethashURL", ""); pref("browser.safebrowsing.provider.google.updateURL", ""); pref("browser.safebrowsing.provider.google.lists", ""); +// https://bugzilla.mozilla.org/show_bug.cgi?id=1025965 +user_pref("browser.safebrowsing.phishing.enabled", false); +user_pref("browser.safebrowsing.provider.google4.lists", ""); +user_pref("browser.safebrowsing.provider.google4.updateURL", ""); +user_pref("browser.safebrowsing.provider.google4.gethashURL", ""); +user_pref("browser.safebrowsing.provider.google4.reportURL", ""); +user_pref("browser.safebrowsing.provider.mozilla.lists", ""); + +// Disable Microsoft Family Safety MiTM support +// https://bugzilla.mozilla.org/show_bug.cgi?id=1239166 +// https://wiki.mozilla.org/SecurityEngineering/Untrusted_Certificates_in_Windows_Child_Mode +// https://hg.mozilla.org/releases/mozilla-release/file/ddb37c386bb2ffa180117b4d30ca3b41a8af233c/security/manager/ssl/nsNSSComponent.cpp#l782 +user_pref("security.family_safety.mode", 0); + // Disable pocket // https://support.mozilla.org/en-US/kb/save-web-pages-later-pocket-firefox pref("browser.pocket.enabled", false); @@ -706,6 +759,9 @@ pref("browser.webapps.checkForUpdates", 0); pref("browser.webapps.updateCheckUrl", "about:blank"); pref("dom.mozApps.signed_apps_installable_from", ""); +// https://bugzilla.mozilla.org/show_bug.cgi?id=1223838#c31 +pref("network.http.enablePerElementReferrer", false); + // Disable Favicon lookups // http://kb.mozillazine.org/Browser.chrome.favicons // pref("browser.chrome.favicons", false); |