mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01:00
fix #2440
This commit is contained in:
parent
23fa686f46
commit
d7f751d42b
@ -437,9 +437,11 @@ var processCSP = function(pageStore, details) {
|
|||||||
inlineScriptResult = pageStore.filterRequestNoCache(context);
|
inlineScriptResult = pageStore.filterRequestNoCache(context);
|
||||||
blockInlineScript = µb.isBlockResult(inlineScriptResult);
|
blockInlineScript = µb.isBlockResult(inlineScriptResult);
|
||||||
// https://github.com/gorhill/uBlock/issues/2360
|
// https://github.com/gorhill/uBlock/issues/2360
|
||||||
|
// https://github.com/gorhill/uBlock/issues/2440
|
||||||
context.requestType = 'script';
|
context.requestType = 'script';
|
||||||
context.requestURL = 'blob:';
|
context.requestURL = 'blob:';
|
||||||
workerResult = pageStore.filterRequestNoCache(context);
|
µb.staticNetFilteringEngine.matchString(context);
|
||||||
|
workerResult = µb.staticNetFilteringEngine.toResultString(loggerEnabled);
|
||||||
blockWorker = µb.isBlockResult(workerResult);
|
blockWorker = µb.isBlockResult(workerResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -469,7 +471,7 @@ var processCSP = function(pageStore, details) {
|
|||||||
context.pageHostname
|
context.pageHostname
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ( websocketResult !== '' ) {
|
if ( websocketResult ) {
|
||||||
µb.logger.writeOne(
|
µb.logger.writeOne(
|
||||||
tabId,
|
tabId,
|
||||||
'net',
|
'net',
|
||||||
@ -480,7 +482,7 @@ var processCSP = function(pageStore, details) {
|
|||||||
context.pageHostname
|
context.pageHostname
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ( workerResult !== '' ) {
|
if ( workerResult ) {
|
||||||
µb.logger.writeOne(
|
µb.logger.writeOne(
|
||||||
tabId,
|
tabId,
|
||||||
'net',
|
'net',
|
||||||
|
Loading…
Reference in New Issue
Block a user