From 5922c3fcde43dac6ea470f92bd94411b96df37aa Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 26 Apr 2017 16:05:14 -0400 Subject: [PATCH] fix https://github.com/gorhill/uBlock/issues/2558 --- platform/firefox/vapi-background.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index f4154be..3d5a6a1 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -907,6 +907,8 @@ vAPI.tabs.open = function(details) { for ( tab of this.getAllSync() ) { 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 if ( URI.equalsExceptRef(browser.currentURI) === false ) {