1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-01 18:10:17 +12:00

code review re. last commit

This commit is contained in:
gorhill 2015-04-13 10:05:11 -04:00
parent 4fffc97954
commit dd90ff1c57

View file

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