Silently ignore invalid tab id

pull/2/head
Raymond Hill 5 years ago
parent 3da449b8a4
commit 93b28cdd84
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

@ -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.

Loading…
Cancel
Save