1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

#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

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)]) ) {