From f9ebb2eb9d527b9ebe75f7a2b75e4071d9678dcf Mon Sep 17 00:00:00 2001 From: Frank Yan Date: Sat, 4 Sep 2010 18:06:00 -0400 Subject: [PATCH] Bug 593645 - use popup.triggerNode instead of document.popupNode for tab context menu; r=dao --- browser/base/content/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index b95da1f5e58e..daf47145a6b1 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -8449,8 +8449,8 @@ function restoreLastSession() { var TabContextMenu = { contextTab: null, updateContextMenu: function updateContextMenu(aPopupMenu) { - this.contextTab = document.popupNode.localName == "tab" ? - document.popupNode : gBrowser.selectedTab; + this.contextTab = aPopupMenu.triggerNode.localName == "tab" ? + aPopupMenu.triggerNode : gBrowser.selectedTab; let disabled = gBrowser.visibleTabs.length == 1; // Enable the "Close Tab" menuitem when the window doesn't close with the last tab.