From c468d591d7c367784baaad08724241b847e79bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Fri, 6 Aug 2010 08:55:42 +0200 Subject: [PATCH] Bug 425575 - Huge context menu when holding right-click on a page, dragging mouse and letting go anywhere out of content area. r=mano --- browser/base/content/nsContextMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/base/content/nsContextMenu.js b/browser/base/content/nsContextMenu.js index 23db1da07b58..977678017fda 100644 --- a/browser/base/content/nsContextMenu.js +++ b/browser/base/content/nsContextMenu.js @@ -421,6 +421,7 @@ 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 || this.isTargetAFormControl(aNode)) { this.shouldDisplay = false; return;