mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
this fixes #1471
This commit is contained in:
parent
5a2e9bc1a7
commit
4650b8778a
1 changed files with 4 additions and 1 deletions
|
|
@ -647,7 +647,10 @@ vAPI.tabs.onPopupUpdated = (function() {
|
||||||
if ( pos === -1 ) {
|
if ( pos === -1 ) {
|
||||||
return '';
|
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 '';
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue