mirror of https://github.com/gorhill/uBlock.git
fix #1903
This commit is contained in:
parent
b3ffdb6b68
commit
dbdc81aaf5
|
@ -646,7 +646,14 @@ vAPI.tabs.onPopupUpdated = (function() {
|
|||
// https://github.com/gorhill/uBlock/issues/1471
|
||||
// We test whether the opener hostname as at least one character
|
||||
// within matched portion of URL.
|
||||
return beg < pos + popunderHostname.length && end > pos ? result : '';
|
||||
// https://github.com/gorhill/uBlock/issues/1903
|
||||
// Ignore filters which cause a match before the start of the
|
||||
// hostname in the URL.
|
||||
return beg >= pos &&
|
||||
beg < pos + popunderHostname.length &&
|
||||
end > pos ?
|
||||
result :
|
||||
'';
|
||||
};
|
||||
|
||||
var popunderMatch = function(openerURL, targetURL) {
|
||||
|
|
Loading…
Reference in New Issue