rem: if (gList.selectedIndex == -1) gList.selectedIndex=0; 
add: if (gList.selectedIndex == -1) { gList.selectedIndex = 0; gSelectedFolder = "NC:BookmarksRoot"; } 
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, 0);  if (gList.selectedIndex == -1)    gList.selectedIndex=0;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/59ae0c5f5f9e9fba21297599f073bfebec90d15e/addBookmark2.js/clean/browser/components/bookmarks/content/addBookmark2.js