From 5af147496689747d3d2b4b97ac0e81a2994d202b Mon Sep 17 00:00:00 2001 From: Ed Morley Date: Wed, 31 Oct 2012 16:07:20 +0000 Subject: [PATCH] Backout f3bb2259ca27 (bug 433168) for browser-chrome failures --- browser/base/content/nsContextMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js index 2a6958749d6b..397aad3bd1f6 100644 --- a/browser/base/content/nsContextMenu.js +++ b/browser/base/content/nsContextMenu.js @@ -424,7 +424,8 @@ nsContextMenu.prototype = { setTarget: function (aNode, aRangeParent, aRangeOffset) { const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; if (aNode.namespaceURI == xulNS || - aNode.nodeType == Node.DOCUMENT_NODE) { + aNode.nodeType == Node.DOCUMENT_NODE || + this.isTargetAFormControl(aNode)) { this.shouldDisplay = false; return; } @@ -1272,7 +1273,6 @@ nsContextMenu.prototype = { "contextMenu.hasBGImage = " + this.hasBGImage + "\n"; }, - // This method has been deprecated. See bug 433168 for more information. // Returns true if aNode is a from control (except text boxes and images). // This is used to disable the context menu for form controls. isTargetAFormControl: function(aNode) {