summaryrefslogtreecommitdiff
path: root/src/bg
diff options
context:
space:
mode:
authorhackademix2018-08-01 18:13:39 +0200
committerhackademix2018-08-01 18:13:39 +0200
commit9782ab02d53e9c37100d8e3e976fa4d90c1c1abe (patch)
treee499f7e47014e53d769c513d0a12a2f56255f846 /src/bg
parent76190a644e5b73240af2b02625e0a773e6634a86 (diff)
downloadnoscript-9782ab02d53e9c37100d8e3e976fa4d90c1c1abe.tar.gz
noscript-9782ab02d53e9c37100d8e3e976fa4d90c1c1abe.tar.xz
noscript-9782ab02d53e9c37100d8e3e976fa4d90c1c1abe.zip
Fixed inline scripts not being reported to UI (skriptimaahinen).
Diffstat (limited to 'src/bg')
-rw-r--r--src/bg/RequestGuard.js1
1 files changed, 1 insertions, 0 deletions
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) {