File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 77WARN = 5 ;
88
99// PREFERENCE BRANCHES
10- PREFBRANCH_ROOT = 0 ;
11- PREFBRANCH_RULE_TOGGLE = 1 ;
10+ let PREFBRANCH_ROOT = 0 ;
11+ let PREFBRANCH_RULE_TOGGLE = 1 ;
12+ let PREFBRANCH_NONE = 2 ;
1213
1314//---------------
1415
@@ -194,6 +195,11 @@ function HTTPSEverywhere() {
194195 this . httpNowhereEnabled = this . prefs . getBoolPref ( "http_nowhere.enabled" ) ;
195196 this . isMobile = this . doMobileCheck ( ) ;
196197
198+ // Disable SSLv3 to prevent POODLE attack.
199+ // https://www.imperialviolet.org/2014/10/14/poodle.html
200+ var root_prefs = this . get_prefs ( PREFBRANCH_NONE ) ;
201+ root_prefs . setIntPref ( "security.tls.version.min" , 1 ) ;
202+
197203 // We need to use observers instead of categories for FF3.0 for these:
198204 // https://developer.mozilla.org/en/Observer_Notifications
199205 // https://developer.mozilla.org/en/nsIObserverService.
@@ -660,8 +666,10 @@ HTTPSEverywhere.prototype = {
660666 // get our preferences branch object
661667 // FIXME: Ugly hack stolen from https
662668 var branch_name ;
663- if ( prefBranch == PREFBRANCH_RULE_TOGGLE )
669+ if ( prefBranch === PREFBRANCH_RULE_TOGGLE )
664670 branch_name = "extensions.https_everywhere.rule_toggle." ;
671+ else if ( prefBranch === PREFBRANCH_NONE )
672+ branch_name = "" ;
665673 else
666674 branch_name = "extensions.https_everywhere." ;
667675 var o_prefs = false ;
You can’t perform that action at this time.
0 commit comments