1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 16:25:03 +12:00

Firefox: proper cleanup for context-menu item

This commit is contained in:
Deathamns 2014-12-20 11:59:58 +01:00 committed by gorhill
parent 0769160b34
commit 84a0bbf18e

View file

@ -333,6 +333,7 @@ vAPI.tabs.registerListeners = function() {
for (var win of vAPI.tabs.getWindows()) {
vAPI.toolbarButton.unregister(win.document);
vAPI.contextMenu.unregister(win.document);
win.removeEventListener('DOMContentLoaded', windowWatcher.onReady);
win.gBrowser.removeTabsProgressListener(tabsProgressListener);