mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Do not skip querypruning when no-strict-blocking is true
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1341
This commit is contained in:
parent
ec9a5b5113
commit
02b4d149e3
@ -137,7 +137,8 @@ const onBeforeRootFrameRequest = function(fctxt) {
|
|||||||
let logData;
|
let logData;
|
||||||
|
|
||||||
// If the site is whitelisted, disregard strict blocking
|
// If the site is whitelisted, disregard strict blocking
|
||||||
if ( µb.getNetFilteringSwitch(requestURL) === false ) {
|
const trusted = µb.getNetFilteringSwitch(requestURL) === false;
|
||||||
|
if ( trusted ) {
|
||||||
result = 2;
|
result = 2;
|
||||||
if ( loggerEnabled ) {
|
if ( loggerEnabled ) {
|
||||||
logData = { engine: 'u', result: 2, raw: 'whitelisted' };
|
logData = { engine: 'u', result: 2, raw: 'whitelisted' };
|
||||||
@ -216,7 +217,12 @@ const onBeforeRootFrameRequest = function(fctxt) {
|
|||||||
|
|
||||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/760
|
// https://github.com/uBlockOrigin/uBlock-issues/issues/760
|
||||||
// Redirect non-blocked request?
|
// Redirect non-blocked request?
|
||||||
if ( result === 0 && pageStore !== null && snfe.hasQuery(fctxt) ) {
|
if (
|
||||||
|
result !== 1 &&
|
||||||
|
trusted === false &&
|
||||||
|
pageStore !== null &&
|
||||||
|
snfe.hasQuery(fctxt)
|
||||||
|
) {
|
||||||
pageStore.redirectNonBlockedRequest(fctxt);
|
pageStore.redirectNonBlockedRequest(fctxt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user