Skip to content

Commit b66e0af

Browse files
committed
Avoid useless "seen" reports from onBeforeRequest().
1 parent 6580568 commit b66e0af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bg/RequestGuard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ var RequestGuard = (() => {
371371
}
372372
}
373373
}
374-
Content.reportTo(request, allowed, policyType);
374+
if (type !== "main_frame") {
375+
Content.reportTo(request, allowed, policyType);
376+
}
375377
if (!allowed) {
376378
debug(`Blocking ${policyType}`, request);
377379
TabStatus.record(request, "blocked");

0 commit comments

Comments
 (0)