From 5c2af95c734c388717d4a7843b0ea9455293041f 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 712a48854..0e350a8e1 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);