From 746655c885023bba91caffaad73aaab298b0da76 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 8 Sep 2018 14:36:47 +0200 Subject: Fixed regression: undefined fake request.url ends to for inline scripts CSP reports. --- src/bg/RequestGuard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bg/RequestGuard.js') diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index e507806..299e1a3 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -394,7 +394,7 @@ var RequestGuard = (() => { let blockedURI = report['blocked-uri']; if (blockedURI && blockedURI !== 'self') { let r = fakeRequestFromCSP(report, request); - if (r.url === 'inline') r.url = request.documentURI; + if (r.url === 'inline') r.url = request.documentUrl; Content.reportTo(r, false, policyTypesMap[r.type]); TabStatus.record(r, "blocked"); } else if (report["violated-directive"] === "script-src" && /; script-src 'none'/.test(report["original-policy"])) { -- cgit v1.2.3