Commit c8f7cd3f authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame Committed by Richard Pospesel
Browse files

Bug 19850: Disable Plaintext HTTP Clearnet Connections

The HTTPS-Only mode of Firefox starts a background connection to verify
whether HTTP is available, if the HTTPS connection does not start
within a timeout.
This commit disables this feature in Safer and Safest modes.
parent a7f60735
...@@ -19,16 +19,17 @@ let log = (level, msg) => logger.log(level, msg); ...@@ -19,16 +19,17 @@ let log = (level, msg) => logger.log(level, msg);
// bind NoScript settings to the extensions.torbutton.security_slider // bind NoScript settings to the extensions.torbutton.security_slider
// (see noscript-control.js). // (see noscript-control.js).
const kSecuritySettings = { const kSecuritySettings = {
// Preference name : [0, 1-high 2-m 3-m 4-low] // Preference name : [0, 1-high 2-m 3-m 4-low]
"javascript.options.ion" : [, false, false, false, true ], "javascript.options.ion" : [, false, false, false, true ],
"javascript.options.baselinejit" : [, false, false, false, true ], "javascript.options.baselinejit" : [, false, false, false, true ],
"javascript.options.native_regexp" : [, false, false, false, true ], "javascript.options.native_regexp" : [, false, false, false, true ],
"mathml.disabled" : [, true, true, true, false], "mathml.disabled" : [, true, true, true, false],
"gfx.font_rendering.graphite.enabled" : [, false, false, false, true ], "gfx.font_rendering.graphite.enabled" : [, false, false, false, true ],
"gfx.font_rendering.opentype_svg.enabled" : [, false, false, false, true ], "gfx.font_rendering.opentype_svg.enabled" : [, false, false, false, true ],
"svg.disabled" : [, true, false, false, false], "svg.disabled" : [, true, false, false, false],
"javascript.options.asmjs" : [, false, false, false, true ], "javascript.options.asmjs" : [, false, false, false, true ],
"javascript.options.wasm" : [, false, false, false, true ], "javascript.options.wasm" : [, false, false, false, true ],
"dom.security.https_only_mode_send_http_background_request" : [, false, false, false, true ],
}; };
// The Security Settings prefs in question. // The Security Settings prefs in question.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment