mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fix #2225
This commit is contained in:
parent
df7dedfed1
commit
c3c92f85ff
1 changed files with 6 additions and 2 deletions
|
|
@ -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 a new issue