@@ -56,13 +56,11 @@ const INCLUDE = function(name) {
5656 for ( var j = 0 , len = arguments . length ; j < len ; j ++ )
5757 INCLUDE ( arguments [ j ] ) ;
5858 else if ( ! _INCLUDED [ name ] ) {
59- try {
60- LOADER . loadSubScript ( "chrome://https-everywhere/content/code/"
61- + name + ".js" ) ;
62- _INCLUDED [ name ] = true ;
63- } catch ( e ) {
64- dump ( "INCLUDE " + name + ": " + e + "\n" ) ;
65- }
59+ // we used to try/catch here, but that was less useful because it didn't
60+ // produce line numbers for syntax errors
61+ LOADER . loadSubScript ( "chrome://https-everywhere/content/code/"
62+ + name + ".js" ) ;
63+ _INCLUDED [ name ] = true ;
6664 }
6765}
6866
@@ -382,11 +380,11 @@ HTTPSEverywhere.prototype = {
382380 try {
383381 var domWin = nc . getInterface ( CI . nsIDOMWindow ) ;
384382 } catch ( e ) {
385- this . log ( INFO , "exploded getting DOMWin for " + channel . URI . spec ) ;
383+ this . log ( INFO , "No window associated with request: " + channel . URI . spec ) ;
386384 return null ;
387385 }
388386 if ( ! domWin ) {
389- this . log ( WARN , "failed to get DOMWin for " + channel . URI . spec ) ;
387+ this . log ( NOTE , "failed to get DOMWin for " + channel . URI . spec ) ;
390388 return null ;
391389 }
392390 domWin = domWin . top ;
@@ -454,7 +452,6 @@ HTTPSEverywhere.prototype = {
454452 HTTPS . handleSecureCookies ( channel ) ;
455453 } else if ( topic == "cookie-changed" ) {
456454 // Javascript can add cookies via document.cookie that are insecure.
457- // It might also be able to
458455 if ( data == "added" || data == "changed" ) {
459456 // subject can also be an nsIArray! bleh.
460457 try {
@@ -520,7 +517,6 @@ HTTPSEverywhere.prototype = {
520517 var shown = ssl_observatory . myGetBoolPref ( "popup_shown" ) ;
521518 var enabled = ssl_observatory . myGetBoolPref ( "enabled" ) ;
522519 var that = this ;
523- var cohort = this . getExperimentalFeatureCohort ( ) ;
524520 var obs_popup_callback = function ( result ) {
525521 if ( result ) that . log ( INFO , "Got positive proxy test." ) ;
526522 else that . log ( INFO , "Got negative proxy text." ) ;
0 commit comments