From 335c3d0b983a41a07d297fcf0a046c0b62088308 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 20 Nov 2016 03:01:41 -0500 Subject: [PATCH] Fix error creating context menu for independent save button --- chrome/content/zotero/icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/icon.js b/chrome/content/zotero/icon.js index 5c438b3b25..c05cae6fee 100644 --- a/chrome/content/zotero/icon.js +++ b/chrome/content/zotero/icon.js @@ -200,7 +200,7 @@ function addIcon() { const kNSXUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; button.setAttribute('disabled', 'true'); button.setAttribute('type', 'menu-button'); - let menupopup = document.createElementNS(kNSXUL, "menupopup"); + let menupopup = button.ownerDocument.createElementNS(kNSXUL, "menupopup"); menupopup.setAttribute('onpopupshowing', "Zotero_Browser.onStatusPopupShowing(event)"); button.appendChild(menupopup); }