Skip to content

Commit 65edce1

Browse files
committed
Fix plumbing
1 parent 10e4730 commit 65edce1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/https-everywhere.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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") {

0 commit comments

Comments
 (0)