add: var kids = document.getElementById("treechildren-bookmarks"); if (kids.firstChild) bookmarksTree.selectItem(kids.firstChild);  
context: function Startup(){  // Create the Bookmarks Shell  var bookmarksTree = document.getElementById("bookmarksTree");  gBookmarksShell = new BookmarksWindowTree (bookmarksTree.database);  // Set up the tree controller  bookmarksTree.controllers.appendController(gBookmarksShell.controller);  const windowNode = document.getElementById("bookmark-window");  // If we've been opened with a parameter, root the tree on it.  if ("arguments" in window && window.arguments[0]) {    bookmarksTree.setAttribute("ref", window.arguments[0]);    const krNameArc = gBookmarksShell.RDF.GetResource(NC_NS + "Name");    const krRoot = gBookmarksShell.RDF.GetResource(window.arguments[0]);    var rName = gBookmarksShell.db.GetTarget(krRoot, krNameArc, true);    rName = rName.QueryInterface(Components.interfaces.nsIRDFLiteral).Value;    const titleString = gBookmarksShell.getLocaleString("window_title");    windowNode.setAttribute("title", titleString.replace(/%folder_name%/gi, rName));  }  else {    var rootfoldername = gBookmarksShell.getLocaleString("bookmarks_root");    const kProfileContractID = "@mozilla.org/profile/manager;1";    const kProfileIID = Components.interfaces.nsIProfile;    const kProfile = Components.classes[kProfileContractID].getService(kProfileIID);    rootfoldername = rootfoldername.replace(/%user_name%/, kProfile.currentProfile);    windowNode.setAttribute("title", rootfoldername);  }  // Update to the last sort.  RefreshSort();  bookmarksTree.focus();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b58a221f2fde203195889c6df948140558b290e2/bookmarks.js/clean/xpfe/components/bookmarks/resources/bookmarks.js