From 93b28cdd84b918c01a0abe843267e1008ea12730 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 5 Sep 2019 09:16:45 -0400 Subject: [PATCH] Silently ignore invalid tab id --- src/js/tab.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/tab.js b/src/js/tab.js index 4581214..56187a0 100644 --- a/src/js/tab.js +++ b/src/js/tab.js @@ -440,9 +440,7 @@ vAPI.tabs.registerListeners(); // Do not create a page store for URLs which are of no interests // Example: dev console let tabContext = this.tabContextManager.lookup(tabId); - if ( tabContext === null ) { - throw new Error('Unmanaged tab id: ' + tabId); - } + if ( tabContext === null ) { return; } // rhill 2013-11-24: Never ever rebind behind-the-scene // virtual tab.