File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,8 @@ HTTPSEverywhere.prototype = {
474474 // These are the highest level heuristics for figuring out whether
475475 // we should consider rewriting a URI. Everything here should be simple
476476 // and avoid dependence on the ruleset library
477- shouldIgnoreURI : function ( uri , alist ) {
477+ shouldIgnoreURI : function ( channel , alist ) {
478+ var uri = channel . URI ;
478479 // Ignore all non-http(s) requests?
479480 if ( ! ( uri . schemeIs ( "http" ) || uri . schemeIs ( "https" ) ) ) { return true ; }
480481
@@ -533,7 +534,7 @@ HTTPSEverywhere.prototype = {
533534 this . log ( DBUG , "Got http-on-modify-request: " + channel . URI . spec ) ;
534535
535536 var lst = this . getApplicableListForChannel ( channel ) ; // null if no window is associated (ex: xhr)
536- if ( this . shouldIgnoreURI ( channel . URI , lst ) ) return ;
537+ if ( this . shouldIgnoreURI ( channel , lst ) ) return ;
537538 HTTPS . replaceChannel ( lst , channel ) ;
538539
539540 } else if ( topic == "http-on-examine-response" ) {
You can’t perform that action at this time.
0 commit comments