Avoid useless "seen" reports from onBeforeRequest().

This commit is contained in:
hackademix 2020-09-04 20:25:41 +02:00
parent 658056878c
commit b66e0afde1
1 changed files with 3 additions and 1 deletions

View File

@ -371,7 +371,9 @@ var RequestGuard = (() => {
}
}
}
Content.reportTo(request, allowed, policyType);
if (type !== "main_frame") {
Content.reportTo(request, allowed, policyType);
}
if (!allowed) {
debug(`Blocking ${policyType}`, request);
TabStatus.record(request, "blocked");