gorhill 8 years ago
parent
commit
5922c3fcde
  1. 2
      platform/firefox/vapi-background.js

2
platform/firefox/vapi-background.js

@ -907,6 +907,8 @@ vAPI.tabs.open = function(details) {
for ( tab of this.getAllSync() ) { for ( tab of this.getAllSync() ) {
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 ) {

Loading…
Cancel
Save