diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index ede3d0117..5167c5fb6 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -3548,8 +3548,12 @@ FilterContainer.prototype.benchmark = async function(action, target) { print(`\turl=${fctxt.url}`); print(`\tdocOrigin=${fctxt.getDocOrigin()}`); } - if ( fctxt.type === 'main_frame' || fctxt.type === 'sub_frame' ) { - this.matchAndFetchData(fctxt, 'csp'); + if ( r !== 1 ) { + if ( fctxt.type === 'main_frame' || fctxt.type === 'sub_frame' ) { + this.matchAndFetchData(fctxt, 'csp'); + } + } else { + fctxt.redirectURL = µb.redirectEngine.toURL(fctxt); } } const t1 = self.performance.now();