Browse Source

Silently ignore invalid tab id

pull/2/head
Raymond Hill 5 years ago
parent
commit
93b28cdd84
No known key found for this signature in database GPG Key ID: 25E1490B761470C2
  1. 4
      src/js/tab.js

4
src/js/tab.js

@ -440,9 +440,7 @@ vAPI.tabs.registerListeners();
// Do not create a page store for URLs which are of no interests // Do not create a page store for URLs which are of no interests
// Example: dev console // Example: dev console
let tabContext = this.tabContextManager.lookup(tabId); 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 // rhill 2013-11-24: Never ever rebind behind-the-scene
// virtual tab. // virtual tab.

Loading…
Cancel
Save