mirror of https://github.com/gorhill/uBlock.git
fix #2659 (regression)
This commit is contained in:
parent
189c9d55dd
commit
1581ec20d8
|
@ -2,7 +2,7 @@
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
|
|
||||||
"name": "uBlock Origin",
|
"name": "uBlock Origin",
|
||||||
"version": "1.12.5.14",
|
"version": "1.12.5.15",
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
"launch-element-zapper": {
|
"launch-element-zapper": {
|
||||||
|
|
|
@ -235,7 +235,7 @@ var onBeforeRootFrameRequest = function(details) {
|
||||||
// Check for specific block
|
// Check for specific block
|
||||||
if ( result === 0 ) {
|
if ( result === 0 ) {
|
||||||
result = snfe.matchStringExactType(context, requestURL, 'main_frame');
|
result = snfe.matchStringExactType(context, requestURL, 'main_frame');
|
||||||
if ( result !== 0 && logEnabled === true ) {
|
if ( result !== 0 || logEnabled === true ) {
|
||||||
logData = snfe.toLogData();
|
logData = snfe.toLogData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -243,8 +243,7 @@ var onBeforeRootFrameRequest = function(details) {
|
||||||
// Check for generic block
|
// Check for generic block
|
||||||
if ( result === 0 ) {
|
if ( result === 0 ) {
|
||||||
result = snfe.matchStringExactType(context, requestURL, 'no_type');
|
result = snfe.matchStringExactType(context, requestURL, 'no_type');
|
||||||
if ( result !== 0 ) {
|
if ( result !== 0 || logEnabled === true ) {
|
||||||
if ( result === 1 || logEnabled === true ) {
|
|
||||||
logData = snfe.toLogData();
|
logData = snfe.toLogData();
|
||||||
}
|
}
|
||||||
// https://github.com/chrisaljoudi/uBlock/issues/1128
|
// https://github.com/chrisaljoudi/uBlock/issues/1128
|
||||||
|
@ -257,7 +256,7 @@ var onBeforeRootFrameRequest = function(details) {
|
||||||
toBlockDocResult(requestURL, requestHostname, logData) === false
|
toBlockDocResult(requestURL, requestHostname, logData) === false
|
||||||
) {
|
) {
|
||||||
result = 0;
|
result = 0;
|
||||||
}
|
logData = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue