diff options
author | hackademix | 2018-08-01 18:13:39 +0200 |
---|---|---|
committer | hackademix | 2018-08-01 18:13:39 +0200 |
commit | 9782ab02d53e9c37100d8e3e976fa4d90c1c1abe (patch) | |
tree | e499f7e47014e53d769c513d0a12a2f56255f846 /src | |
parent | 76190a644e5b73240af2b02625e0a773e6634a86 (diff) | |
download | noscript-9782ab02d53e9c37100d8e3e976fa4d90c1c1abe.tar.gz noscript-9782ab02d53e9c37100d8e3e976fa4d90c1c1abe.tar.xz noscript-9782ab02d53e9c37100d8e3e976fa4d90c1c1abe.zip |
Fixed inline scripts not being reported to UI (skriptimaahinen).
Diffstat (limited to 'src')
-rw-r--r-- | src/bg/RequestGuard.js | 1 |
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) { |