mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
this fixes #1471
This commit is contained in:
parent
5a2e9bc1a7
commit
4650b8778a
@ -647,7 +647,10 @@ vAPI.tabs.onPopupUpdated = (function() {
|
||||
if ( pos === -1 ) {
|
||||
return '';
|
||||
}
|
||||
if ( beg >= pos + openerHostname.length || end < pos ) {
|
||||
// https://github.com/gorhill/uBlock/issues/1471
|
||||
// We test whether the opener hostname as at least one character
|
||||
// within matched portion of URL.
|
||||
if ( beg >= pos + openerHostname.length || end <= pos ) {
|
||||
return '';
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user