This commit is contained in:
gorhill 2017-04-24 18:30:06 -04:00
parent 2369794c2c
commit 5c9ffd9af5
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 0 deletions

View File

@ -967,6 +967,8 @@ vAPI.tabs.open = function(details) {
for ( tab of this.getAll() ) { for ( tab of this.getAll() ) {
var browser = tabWatcher.browserFromTarget(tab); var browser = tabWatcher.browserFromTarget(tab);
// https://github.com/gorhill/uBlock/issues/2558
if ( browser === null ) { continue; }
// Or simply .equals if we care about the fragment // Or simply .equals if we care about the fragment
if ( URI.equalsExceptRef(browser.currentURI) === false ) { if ( URI.equalsExceptRef(browser.currentURI) === false ) {