From 9782ab02d53e9c37100d8e3e976fa4d90c1c1abe Mon Sep 17 00:00:00 2001 From: hackademix Date: Wed, 1 Aug 2018 18:13:39 +0200 Subject: Fixed inline scripts not being reported to UI (skriptimaahinen). --- src/bg/RequestGuard.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bg') diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index ca2038f..1833c24 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -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) { -- cgit v1.2.3