Bug 241731 bookmarks sidebar creates empty contextmenu when no items are selected

r=mconnor, a=asa


git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@161838 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kyle.yuan%sun.com
2004-09-07 01:36:08 +00:00
parent dbad21c37b
commit 32c649e053

View File

@@ -190,6 +190,11 @@ var BookmarksCommand = {
// selection.
createContextMenu: function (aEvent, aSelection, aDS)
{
if (aSelection == undefined) {
aEvent.preventDefault();
return;
}
var popup = aEvent.target;
// clear out the old context menu contents (if any)
while (popup.hasChildNodes())