diff options
author | hackademix | 2019-09-29 00:42:26 +0200 |
---|---|---|
committer | hackademix | 2019-09-29 17:29:38 +0200 |
commit | 3bf8e29a9a13a6f811a17c3a896ad80a26a1c262 (patch) | |
tree | 7b94282d7191ac2f0da96ac927a276039893e9d6 /src | |
parent | c245237c96acc48864c66fcd63fe2b236c7dfc79 (diff) | |
download | noscript-3bf8e29a9a13a6f811a17c3a896ad80a26a1c262.tar.gz noscript-3bf8e29a9a13a6f811a17c3a896ad80a26a1c262.tar.xz noscript-3bf8e29a9a13a6f811a17c3a896ad80a26a1c262.zip |
Block CSP violation reports requests synchronously, before they fail on .invalid DNS resolution, on Chromium.
Diffstat (limited to 'src')
-rw-r--r-- | src/bg/RequestGuard.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index fc402db..f636f23 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -435,7 +435,7 @@ var RequestGuard = (() => { type, }); } - async function onViolationReport(request) { + function onViolationReport(request) { try { let decoder = new TextDecoder("UTF-8"); const report = JSON.parse(decoder.decode(request.requestBody.raw[0].bytes))['csp-report']; |