rem:  var element = document.createElementNS(XUL_NS, "menuitem"); element.setAttribute("label", "Bookmarks"); element.setAttribute("id", "NC:BookmarksRoot"); popup.appendChild(element);  var folder = RDF.GetResource("NC:BookmarksRoot"); fillFolder(popup, folder, 1); if (gList.selectedIndex == -1) { gList.selectedIndex = 0; gSelectedFolder = "NC:BookmarksRoot"; 
add: var arcs=BMSVC.GetTargets(RDF.GetResource("NC:LastModifiedFoldersRoot"), RDF.GetResource(NC_NS+"child"), true); while (arcs.hasMoreElements()) { var arc = arcs.getNext().QueryInterface(kRDFRSCIID); var element = document.createElementNS(XUL_NS, "menuitem"); element.setAttribute("id", arc.Value); element.setAttribute("label", BookmarksUtils.getProperty(arc, NC_NS+"Name")); popup.appendChild(element); 
context: function fillSelectFolderMenupopup (){  gSelectedFolder = document.getElementById("addBookmarkDialog").getAttribute("selectedFolder");  var popup = document.getElementById("select-folder");  // clearing the old menupopup  while (popup.hasChildNodes())     popup.removeChild(popup.firstChild);  // to be removed once I checkin the top folder  var element = document.createElementNS(XUL_NS, "menuitem");  element.setAttribute("label", "Bookmarks");  element.setAttribute("id", "NC:BookmarksRoot");  popup.appendChild(element);  var folder = RDF.GetResource("NC:BookmarksRoot");  fillFolder(popup, folder, 1);  if (gList.selectedIndex == -1) {    gList.selectedIndex = 0;    gSelectedFolder = "NC:BookmarksRoot";  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7f600cc6ad0d6ecb6d546d054b9685d0d290031c/addBookmark2.js/buggy/browser/components/bookmarks/content/addBookmark2.js