From d90c8486aa3ec54d9426b069ecfa48b4c4b33a88 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 4 Dec 2019 19:23:57 -0500 Subject: [PATCH] Fix reporting of csp-blocked resources in logger Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/552#issuecomment-561888900 Regression from: - https://github.com/gorhill/uBlock/commit/7971b223855d --- src/js/messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index 6b9cf0951..e6eeefd00 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -1489,7 +1489,7 @@ const logCSPViolations = function(pageStore, request) { µb.staticNetFilteringEngine.matchAndFetchData(fctxt, 'csp'); for ( const directive of staticDirectives ) { if ( directive.result !== 1 ) { continue; } - cspData.set(directive.data, directive.logData()); + cspData.set(directive.getData('csp'), directive.logData()); } fctxt.type = 'inline-script';