rem:  if (!bookmarksView.treeBoxObject.view.isContainerEmpty(0)) rowIndex = 1; 
context: function Startup(){  const windowNode = document.getElementById("bookmark-window");  const bookmarksView = document.getElementById("bookmarks-view");  var rowIndex = 0;  var titleString;  // If we've been opened with a parameter, root the tree on it.  if ("arguments" in window && window.arguments[0]) {    var title;    var uri = window.arguments[0];    bookmarksView.tree.setAttribute("ref", uri);    document.getElementById("bookmarks-search").setAttribute("hidden","true")    if (uri.substring(0,5) == "find:") {      title = BookmarksUtils.getLocaleString("search_results_title");      // Update the windowtype so that future searches are directed       // there and the window is not re-used for bookmarks.       windowNode.setAttribute("windowtype", "bookmarks:searchresults");    }    else      title = BookmarksUtils.getProperty(window.arguments[0], NC_NS+"Name");        titleString = BookmarksUtils.getLocaleString("window_title", title);  }  else {    titleString = BookmarksUtils.getLocaleString("bookmarks_title", title);    // always open the bookmark top root folder    if (!bookmarksView.treeBoxObject.view.isContainerOpen(0))      bookmarksView.treeBoxObject.view.toggleOpenState(0);    // XXXvarga this should go away once bug 200067 is fixed.    if (!bookmarksView.treeBoxObject.view.isContainerEmpty(0))      rowIndex = 1;  }  bookmarksView.treeBoxObject.selection.select(rowIndex);  windowNode.setAttribute("title", titleString);  document.getElementById("CommandUpdate_Bookmarks").setAttribute("commandupdater","true");  bookmarksView.tree.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c057ca60fd15b28e82278e05bc0cd74aeaa7fbd4/bookmarksManager.js/clean/xpfe/components/bookmarks/resources/bookmarksManager.js