add: #   when a dialog opens, the popup chain is not correctly dismissed, #   the child of the a menu won''t be closed. if (document.popupNode.firstChild) document.popupNode.firstChild.hidePopup();  
context:   doCommand: function (aCommand)  {#   we needed to focus the element that has the bm command controller#   to get here. Now, let''s focus the content before performing the command:#   if a modal dialog is called from now, the content will be focused again#   automatically after dismissing the dialog    if (content)      content.focus();    BookmarksMenuDNDObserver.onDragRemoveFeedBack(document.popupNode);    var selection = BookmarksMenu._selection;    var target    = BookmarksMenu._target;    switch (aCommand) {    case "cmd_bm_expandfolder":      BookmarksMenu.expandBTFolder();      break;    default:      BookmarksController.doCommand(aCommand, selection, target);    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0be63656d1e4c89a81ff7a928785682e671765a9/bookmarksMenu.js/buggy/browser/components/bookmarks/content/bookmarksMenu.js