#1477: put back mistakenly removed block of code

This commit is contained in:
gorhill 2016-03-16 12:11:37 -04:00
parent f1f9146eeb
commit 2f037e6f72
1 changed files with 21 additions and 0 deletions

View File

@ -2354,6 +2354,27 @@ FilterContainer.prototype.matchStringExactType = function(context, requestURL, r
}
}
// Test against block filters
key = BlockAnyParty | type;
if ( (bucket = categories[toHex(key)]) ) {
if ( this.matchTokens(bucket, url) ) {
this.keyRegister = key;
}
}
if ( this.fRegister === null ) {
key = BlockAction | type | party;
if ( (bucket = categories[toHex(key)]) ) {
if ( this.matchTokens(bucket, url) ) {
this.keyRegister = key;
}
}
}
// If there is no block filter, no need to test against allow filters
if ( this.fRegister === null ) {
return undefined;
}
// Test against allow filters
key = AllowAnyParty | type;
if ( (bucket = categories[toHex(key)]) ) {