Fixed inline scripts not being reported to UI (skriptimaahinen).
This commit is contained in:
parent
76190a644e
commit
9782ab02d5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue