Skip to content

Commit 93d379c

Browse files
committed
Cancel requests where no rulset could apply
Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
1 parent a454a7a commit 93d379c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function onBeforeRequest(details) {
184184

185185
var rs = all_rules.potentiallyApplicableRulesets(uri.hostname());
186186
// If no rulesets could apply, let's get out of here!
187-
if (rs.length === 0) { return; }
187+
if (rs.length === 0) { return {cancel: shouldCancel}; }
188188

189189
if (redirectCounter[details.requestId] >= 8) {
190190
log(NOTE, "Redirect counter hit for " + canonical_url);

0 commit comments

Comments
 (0)