1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00
This commit is contained in:
gorhill 2016-03-12 10:48:31 -05:00
parent 5a2e9bc1a7
commit 4650b8778a

View File

@ -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;