From eb70156b9002395fabfbce5d68d6cc5e3628a285 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 98bde98..30f19f1 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}',