code review re. last commit

pull/2/head
gorhill 10 years ago
parent 4fffc97954
commit dd90ff1c57

@ -676,8 +676,7 @@ vAPI.tabs.select = function(tab) {
return; return;
} }
var tabBrowser = getTabBrowser(getOwnerWindow(tab)); getTabBrowser(getOwnerWindow(tab)).selectedTab = tab;
tabBrowser.selectedTab = tab;
}; };
/******************************************************************************/ /******************************************************************************/
@ -1791,10 +1790,6 @@ vAPI.onLoadAllCompleted = function() {
var µb = µBlock; var µb = µBlock;
for ( var tab of this.tabs.getAll() ) { for ( var tab of this.tabs.getAll() ) {
// We're insterested in only the tabs that were already loaded // We're insterested in only the tabs that were already loaded
if ( tab.hasAttribute('pending') ) {
continue;
}
var tabId = this.tabs.getTabId(tab); var tabId = this.tabs.getTabId(tab);
var browser = getBrowserForTab(tab); var browser = getBrowserForTab(tab);
µb.tabContextManager.commit(tabId, browser.currentURI.asciiSpec); µb.tabContextManager.commit(tabId, browser.currentURI.asciiSpec);

Loading…
Cancel
Save