From 84a0bbf18ef9ea7a384f84fa06e4805f28e0492c Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sat, 20 Dec 2014 11:59:58 +0100 Subject: [PATCH] Firefox: proper cleanup for context-menu item --- platform/firefox/vapi-background.js | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 712a488..0e350a8 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -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);