Skip to content

Commit 96134da

Browse files
jshapde
authored andcommitted
Don't decrease tls.min setting if it's > 1.
1 parent 4fa996b commit 96134da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/https-everywhere.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ function HTTPSEverywhere() {
194194
// Disable SSLv3 to prevent POODLE attack.
195195
// https://www.imperialviolet.org/2014/10/14/poodle.html
196196
var root_prefs = this.get_prefs(PREFBRANCH_NONE);
197-
root_prefs.setIntPref("security.tls.version.min", 1);
197+
var TLS_MIN = "security.tls.version.min";
198+
if (root_prefs.getIntPref(TLS_MIN) < 1) {
199+
root_prefs.setIntPref(TLS_MIN, 1);
200+
}
198201

199202
// We need to use observers instead of categories for FF3.0 for these:
200203
// https://developer.mozilla.org/en/Observer_Notifications

0 commit comments

Comments
 (0)