From 3bf8e29a9a13a6f811a17c3a896ad80a26a1c262 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 29 Sep 2019 00:42:26 +0200 Subject: Block CSP violation reports requests synchronously, before they fail on .invalid DNS resolution, on Chromium. --- src/bg/RequestGuard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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']; -- cgit v1.2.3