1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 08:37:11 +02:00

Remove onNavigation from onTabSelect, as mentioned in #1125

This commit is contained in:
AlexVallat 2015-03-30 18:35:18 +01:00
parent 7ec717d3fe
commit 726325ea0d

View File

@ -327,24 +327,8 @@ var tabWatcher = {
},
onTabSelect: function({target}) {
// target is tab in Firefox, browser in Fennec
var browser = (target.linkedBrowser || target);
var URI = browser.currentURI;
var aboutPath = URI.schemeIs('about') && URI.path;
var tabId = vAPI.tabs.getTabId(target);
if ( !aboutPath || (aboutPath !== 'blank' && aboutPath !== 'newtab') ) {
vAPI.setIcon(tabId, getOwnerWindow(target));
return;
}
if ( browser.webNavigation.busyFlags === 0 /*BUSY_FLAGS_NONE*/ ) {
vAPI.tabs.onNavigation({
frameId: 0,
tabId: tabId,
url: URI.asciiSpec
});
}
vAPI.setIcon(vAPI.tabs.getTabId(target), getOwnerWindow(target));
return;
},
};