@@ -176,7 +176,7 @@ SSLObservatory.prototype = {
176176
177177 findSubmissionTarget : function ( ) {
178178 // Compute the URL that the Observatory will currently submit to
179- var host = this . prefs . getCharPref ( "extensions.https_everywhere._observatory. server_host") ;
179+ var host = this . myGetCharPref ( " server_host") ;
180180 // Rebuild the regexp iff the host has changed
181181 if ( host != this . submit_host ) {
182182 this . submit_host = host ;
@@ -437,11 +437,15 @@ SSLObservatory.prototype = {
437437 return false ;
438438 } ,
439439
440+ // following two methods are syntactic sugar
440441 myGetBoolPref : function ( prefstring ) {
441- // syntactic sugar
442442 return this . prefs . getBoolPref ( "extensions.https_everywhere._observatory." + prefstring ) ;
443443 } ,
444444
445+ myGetCharPref : function ( prefstring ) {
446+ return this . prefs . getCharPref ( "extensions.https_everywhere._observatory." + prefstring ) ;
447+ } ,
448+
445449 isChainWhitelisted : function ( chainhash ) {
446450 if ( X509ChainWhitelist == null ) {
447451 this . log ( WARN , "Could not find whitelist of popular certificate chains, so ignoring whitelist" ) ;
@@ -828,7 +832,7 @@ SSLObservatory.prototype = {
828832 // present. The testingForTor argument is true in the latter case.
829833 var proxy_settings = [ "direct" , "" , 0 ] ;
830834 this . log ( INFO , "in getProxySettings()" ) ;
831- var custom_proxy_type = this . prefs . getCharPref ( "extensions.https_everywhere._observatory. proxy_type") ;
835+ var custom_proxy_type = this . myGetCharPref ( " proxy_type") ;
832836 if ( this . torbutton_installed && this . myGetBoolPref ( "use_tor_proxy" ) ) {
833837 this . log ( INFO , "CASE: use_tor_proxy" ) ;
834838 // extract torbutton proxy settings
0 commit comments