Fix `queryprune` for tabless requests

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/760#issuecomment-724693549
This commit is contained in:
Raymond Hill 2020-11-10 08:58:39 -05:00
parent 727aa95af0
commit 76ef4811a3
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 7 additions and 0 deletions

View File

@ -350,7 +350,14 @@ const onBeforeBehindTheSceneRequest = function(fctxt) {
fctxt.setRealm('network').toLogger();
}
// Redirected
if ( fctxt.redirectURL !== undefined ) {
return { redirectUrl: fctxt.redirectURL };
}
// Blocked?
if ( result === 1 ) {
return { cancel: true };
}