File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
https-everywhere-tests/test_profile_skeleton Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ user_pref("general.warnOnAboutConfig", false);
1313// Minimize unnecesary requests.
1414user_pref ( "browser.safebrowsing.enabled" , false ) ;
1515user_pref ( "browser.safebrowsing.malware.enabled" , false ) ;
16- // Enable browser debugging in test mode.
17- user_pref ( "devtools.debugger.remote-enabled" , true ) ;
16+ // These two preferences allow debugging the extension
17+ // using Tools > Web Developer > Browser Toolbox
18+ // (Note: Since this is not an SDK extension, you can't use the Addon
19+ // Debugger, but the Browser Toolbox is just about as good).
1820user_pref ( "devtools.chrome.enabled" , true ) ;
21+ user_pref ( "devtools.debugger.remote-enabled" , true ) ;
Original file line number Diff line number Diff line change @@ -618,7 +618,13 @@ SSLObservatory.prototype = {
618618 var HTTPSEverywhere = CC [ "@eff.org/https-everywhere;1" ]
619619 . getService ( Components . interfaces . nsISupports )
620620 . wrappedJSObject ;
621- var win = channel ? HTTPSEverywhere . getWindowForChannel ( channel ) : null ;
621+ var win = null ;
622+ if ( channel ) {
623+ var browser = this . HTTPSEverywhere . getBrowserForChannel ( channel ) ;
624+ if ( browser ) {
625+ var win = browser . contentWindow ;
626+ }
627+ }
622628 var req = this . buildRequest ( params ) ;
623629 req . timeout = TIMEOUT ;
624630
You can’t perform that action at this time.
0 commit comments