Skip to content
Browse files

Kill GM_rmc zombies by clearing references via DOM.

Fixes #1608
  • Loading branch information...
1 parent e555cbe commit 007c4c46a19c7f691741ac35db478ba16eb8161b @arantius arantius committed
Showing with 5 additions and 0 deletions.
  1. +1 −0 content/browser.xul
  2. +4 −0 content/menucommander.js
View
1 content/browser.xul
@@ -79,6 +79,7 @@
accesskey="&menu.commands.accesskey;"
label="&menu.commands;"
onpopupshowing="event.stopPropagation();"
+ onpopuphiding="GM_MenuCommander.onPopupHiding(this);"
>
<menupopup/>
</menu>
View
4 content/menucommander.js
@@ -16,6 +16,10 @@ GM_MenuCommander.createMenuItem = function(command) {
return menuItem;
};
+GM_MenuCommander.onPopupHiding = function(aMenuPopup) {
+ GM_util.emptyEl(aMenuPopup);
+}
+
GM_MenuCommander.onPopupShowing = function(aMenuPopup) {
GM_util.emptyEl(aMenuPopup);

0 comments on commit 007c4c4

Please sign in to comment.
Something went wrong with that request. Please try again.