1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01: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:
Raymond Hill 2020-11-13 08:30:43 -05:00
parent ec9a5b5113
commit 02b4d149e3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -137,7 +137,8 @@ const onBeforeRootFrameRequest = function(fctxt) {
let logData;
// If the site is whitelisted, disregard strict blocking
if ( µb.getNetFilteringSwitch(requestURL) === false ) {
const trusted = µb.getNetFilteringSwitch(requestURL) === false;
if ( trusted ) {
result = 2;
if ( loggerEnabled ) {
logData = { engine: 'u', result: 2, raw: 'whitelisted' };
@ -216,7 +217,12 @@ const onBeforeRootFrameRequest = function(fctxt) {
// https://github.com/uBlockOrigin/uBlock-issues/issues/760
// 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);
}