Firefox: proper cleanup for context-menu item

This commit is contained in:
Deathamns 2014-12-20 11:59:58 +01:00
parent d4b2b81ae8
commit 5c2af95c73
1 changed files with 1 additions and 0 deletions

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);