Fixed inline scripts not being reported to UI (skriptimaahinen).

This commit is contained in:
hackademix 2018-08-01 18:13:39 +02:00
parent 76190a644e
commit 9782ab02d5
1 changed files with 1 additions and 0 deletions

View File

@ -525,6 +525,7 @@ var RequestGuard = (() => {
TabStatus.record(r, "blocked");
} else if (report["violated-directive"] === "script-src" && /; script-src 'none'/.test(report["original-policy"])) {
let r = fakeRequestFromCSP(report, request);
Content.reportTo(r, false, "script"); // NEW
TabStatus.record(r, "noscriptFrame", true);
}
} catch(e) {