зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f7b8e4d5ed
Коммит
c468d591d7
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче