From 7e8d2e431b23fdea8705cf631be9cee7cbf88b9b Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 20 Mar 2015 19:17:07 -0400 Subject: [PATCH] this fixes #1057 --- platform/firefox/vapi-background.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 97c2754cf..d7276ad8f 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1843,6 +1843,14 @@ vAPI.contextMenu.create = function(details, callback) { /******************************************************************************/ +vAPI.contextMenu.remove = function() { + for ( var win of vAPI.tabs.getWindows() ) { + this.unregister(win.document); + } +}; + +/******************************************************************************/ + var optionsObserver = { addonId: '{2b10c1c8-a11f-4bad-fe9c-1c11e82cac42}',