mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-22 18:32:45 +01:00
Changes following review
This commit is contained in:
parent
ae310df6dd
commit
6c8b2a1b61
@ -323,7 +323,7 @@ const LocationChangeListener = function(docShell) {
|
||||
this.docShell.addProgressListener(this, Ci.nsIWebProgress.NOTIFY_LOCATION);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
LocationChangeListener.prototype.QueryInterface = XPCOMUtils.generateQI(["nsIWebProgressListener", "nsISupportsWeakReference"]);
|
||||
|
||||
|
@ -328,7 +328,6 @@ var tabWatcher = {
|
||||
|
||||
onTabSelect: function({target}) {
|
||||
vAPI.setIcon(vAPI.tabs.getTabId(target), getOwnerWindow(target));
|
||||
return;
|
||||
},
|
||||
};
|
||||
|
||||
@ -408,7 +407,6 @@ vAPI.tabs.registerListeners = function() {
|
||||
tabContainer = tabBrowser.deck;
|
||||
} else if ( tabBrowser.tabContainer ) {
|
||||
tabContainer = tabBrowser.tabContainer;
|
||||
tabBrowser.removeTabsProgressListener(tabWatcher);
|
||||
}
|
||||
|
||||
tabContainer.removeEventListener('TabClose', tabWatcher.onTabClose);
|
||||
@ -1348,7 +1346,7 @@ vAPI.net.registerListeners = function() {
|
||||
tabId: tabId,
|
||||
url: details.url,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
vAPI.messaging.globalMessageManager.addMessageListener(
|
||||
locationChangedListenerMessageName,
|
||||
|
Loading…
Reference in New Issue
Block a user