summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2019-09-29 00:42:26 +0200
committerhackademix2019-09-29 17:29:38 +0200
commit3bf8e29a9a13a6f811a17c3a896ad80a26a1c262 (patch)
tree7b94282d7191ac2f0da96ac927a276039893e9d6 /src
parentc245237c96acc48864c66fcd63fe2b236c7dfc79 (diff)
downloadnoscript-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.js2
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'];