rem: if (!menuitem) gMenulist.label = BookmarksUtils.getProperty(gSelectedFolder, NC_NS+"Name"); 
add: if (!menuitem) { gMenulist.removeItemAt(gMenulist.firstChild.childNodes.length-1); var newItem = gMenulist.appendItem(BookmarksUtils.getProperty(gSelectedFolder, NC_NS+"Name"), gSelectedFolder.Value); newItem.setAttribute("class", "menuitem-iconic folder-icon"); newItem.setAttribute("id", gSelectedFolder.Value); gMenulist.selectedItem = newItem; } 
context: function selectTreeFolder(){  var resource = gBookmarksTree.currentResource;  if (resource == gSelectedFolder)    return;  gSelectedFolder = resource;  var menuitem = document.getElementById(gSelectedFolder.Value);  gMenulist.selectedItem = menuitem;  if (!menuitem)    gMenulist.label = BookmarksUtils.getProperty(gSelectedFolder, NC_NS+"Name");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/177bd1be41b334bdc6d11f9913e33f941c4823b0/addBookmark2.js/buggy/browser/components/bookmarks/content/addBookmark2.js