mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01:00
fix #2225
This commit is contained in:
parent
df7dedfed1
commit
c3c92f85ff
@ -2201,6 +2201,10 @@ FilterContainer.prototype.matchTokens = function(bucket, url) {
|
||||
FilterContainer.prototype.matchStringGenericHide = function(context, requestURL) {
|
||||
var url = this.urlTokenizer.setURL(requestURL);
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/2225
|
||||
// Important: this is used by FilterHostnameDict.match().
|
||||
requestHostnameRegister = µb.URI.hostnameFromURI(url);
|
||||
|
||||
var bucket = this.categories.get(toHex(genericHideException));
|
||||
if ( !bucket || this.matchTokens(bucket, url) === false ) {
|
||||
this.fRegister = null;
|
||||
@ -2282,7 +2286,7 @@ FilterContainer.prototype.matchStringExactType = function(context, requestURL, r
|
||||
|
||||
// If there is no block filter, no need to test against allow filters
|
||||
if ( this.fRegister === null ) {
|
||||
return undefined;
|
||||
return;
|
||||
}
|
||||
|
||||
// Test against allow filters
|
||||
@ -2419,7 +2423,7 @@ FilterContainer.prototype.matchString = function(context) {
|
||||
|
||||
// If there is no block filter, no need to test against allow filters
|
||||
if ( this.fRegister === null ) {
|
||||
return undefined;
|
||||
return;
|
||||
}
|
||||
|
||||
// Test against allow filters
|
||||
|
Loading…
Reference in New Issue
Block a user