mirror of https://github.com/gorhill/uBlock.git
Fix `urlskip=` with `-blocked` directive for blocked requests
Related feedback: https://github.com/uBlockOrigin/uBlock-issues/issues/3206#issuecomment-2441470631
This commit is contained in:
parent
ac4506091e
commit
c07db7553d
|
@ -925,8 +925,11 @@ const PageStore = class {
|
||||||
}
|
}
|
||||||
|
|
||||||
redirectBlockedRequest(fctxt) {
|
redirectBlockedRequest(fctxt) {
|
||||||
const directives = staticNetFilteringEngine.redirectRequest(redirectEngine, fctxt);
|
const directives = staticNetFilteringEngine.redirectRequest(redirectEngine, fctxt) || [];
|
||||||
if ( directives === undefined ) { return; }
|
if ( this.urlSkippableResources.has(fctxt.itype) ) {
|
||||||
|
staticNetFilteringEngine.urlSkip(fctxt, true, directives);
|
||||||
|
}
|
||||||
|
if ( directives.length === 0 ) { return; }
|
||||||
if ( logger.enabled !== true ) { return; }
|
if ( logger.enabled !== true ) { return; }
|
||||||
fctxt.pushFilters(directives.map(a => a.logData()));
|
fctxt.pushFilters(directives.map(a => a.logData()));
|
||||||
if ( fctxt.redirectURL === undefined ) { return; }
|
if ( fctxt.redirectURL === undefined ) { return; }
|
||||||
|
@ -1152,6 +1155,7 @@ const PageStore = class {
|
||||||
µb.FilteringContext.MAIN_FRAME,
|
µb.FilteringContext.MAIN_FRAME,
|
||||||
µb.FilteringContext.MEDIA,
|
µb.FilteringContext.MEDIA,
|
||||||
µb.FilteringContext.OBJECT,
|
µb.FilteringContext.OBJECT,
|
||||||
|
µb.FilteringContext.OTHER,
|
||||||
µb.FilteringContext.SUB_FRAME,
|
µb.FilteringContext.SUB_FRAME,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue