Bug 425575 - Huge context menu when holding right-click on a page, dragging mouse and letting go anywhere out of content area. r=mano

This commit is contained in:
Dão Gottwald 2010-08-06 08:55:42 +02:00
Родитель f7b8e4d5ed
Коммит c468d591d7
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -421,6 +421,7 @@ nsContextMenu.prototype = {
setTarget: function (aNode, aRangeParent, aRangeOffset) { setTarget: function (aNode, aRangeParent, aRangeOffset) {
const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
if (aNode.namespaceURI == xulNS || if (aNode.namespaceURI == xulNS ||
aNode.nodeType == Node.DOCUMENT_NODE ||
this.isTargetAFormControl(aNode)) { this.isTargetAFormControl(aNode)) {
this.shouldDisplay = false; this.shouldDisplay = false;
return; return;