Bug 427200 - rightclick on bookmarks on the bookmarks toolbar is broken. r=dietrich.

This commit is contained in:
mozilla.mano@sent.com 2008-04-06 12:41:08 -07:00
parent 130fc53345
commit 6ccf6528d3
2 changed files with 5 additions and 0 deletions

View File

@ -936,6 +936,7 @@
// disable the Delete command if the selection isn't explicit
if (document.popupNode && document.popupNode.localName == "menupopup")
document.getElementById("cmd_delete").setAttribute("disabled", "true");
return true;
}
return false;
]]></body>

View File

@ -365,6 +365,9 @@
<getter><![CDATA[
if (this._contextMenuShown) {
var popupNode = document.popupNode;
if (popupNode == this)
return this.getResultNode();
return popupNode.node || popupNode.parentNode._resultNode || null;
}
return null;
@ -952,6 +955,7 @@
// disable the Delete command if the selection isn't explicit
if (document.popupNode && document.popupNode.localName == "menupopup")
document.getElementById("cmd_delete").setAttribute("disabled", "true");
return true;
}
return false;
]]></body>