mirror of https://github.com/gorhill/uBlock.git
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);
|
this.docShell.addProgressListener(this, Ci.nsIWebProgress.NOTIFY_LOCATION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
LocationChangeListener.prototype.QueryInterface = XPCOMUtils.generateQI(["nsIWebProgressListener", "nsISupportsWeakReference"]);
|
LocationChangeListener.prototype.QueryInterface = XPCOMUtils.generateQI(["nsIWebProgressListener", "nsISupportsWeakReference"]);
|
||||||
|
|
||||||
|
|
|
@ -328,7 +328,6 @@ var tabWatcher = {
|
||||||
|
|
||||||
onTabSelect: function({target}) {
|
onTabSelect: function({target}) {
|
||||||
vAPI.setIcon(vAPI.tabs.getTabId(target), getOwnerWindow(target));
|
vAPI.setIcon(vAPI.tabs.getTabId(target), getOwnerWindow(target));
|
||||||
return;
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -408,7 +407,6 @@ vAPI.tabs.registerListeners = function() {
|
||||||
tabContainer = tabBrowser.deck;
|
tabContainer = tabBrowser.deck;
|
||||||
} else if ( tabBrowser.tabContainer ) {
|
} else if ( tabBrowser.tabContainer ) {
|
||||||
tabContainer = tabBrowser.tabContainer;
|
tabContainer = tabBrowser.tabContainer;
|
||||||
tabBrowser.removeTabsProgressListener(tabWatcher);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tabContainer.removeEventListener('TabClose', tabWatcher.onTabClose);
|
tabContainer.removeEventListener('TabClose', tabWatcher.onTabClose);
|
||||||
|
@ -1348,7 +1346,7 @@ vAPI.net.registerListeners = function() {
|
||||||
tabId: tabId,
|
tabId: tabId,
|
||||||
url: details.url,
|
url: details.url,
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
vAPI.messaging.globalMessageManager.addMessageListener(
|
vAPI.messaging.globalMessageManager.addMessageListener(
|
||||||
locationChangedListenerMessageName,
|
locationChangedListenerMessageName,
|
||||||
|
|
Loading…
Reference in New Issue