From d7f751d42bcf23391adc19878daa12de3f8b1a93 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 16 Mar 2017 19:14:25 -0400 Subject: [PATCH] fix #2440 --- src/js/traffic.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index da56f1a0f..601bf60bc 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -437,9 +437,11 @@ var processCSP = function(pageStore, details) { inlineScriptResult = pageStore.filterRequestNoCache(context); blockInlineScript = µb.isBlockResult(inlineScriptResult); // https://github.com/gorhill/uBlock/issues/2360 + // https://github.com/gorhill/uBlock/issues/2440 context.requestType = 'script'; context.requestURL = 'blob:'; - workerResult = pageStore.filterRequestNoCache(context); + µb.staticNetFilteringEngine.matchString(context); + workerResult = µb.staticNetFilteringEngine.toResultString(loggerEnabled); blockWorker = µb.isBlockResult(workerResult); } @@ -469,7 +471,7 @@ var processCSP = function(pageStore, details) { context.pageHostname ); } - if ( websocketResult !== '' ) { + if ( websocketResult ) { µb.logger.writeOne( tabId, 'net', @@ -480,7 +482,7 @@ var processCSP = function(pageStore, details) { context.pageHostname ); } - if ( workerResult !== '' ) { + if ( workerResult ) { µb.logger.writeOne( tabId, 'net',