rem: var children = document.getElementById('treechildren-bookmarks'); if (children.firstChild) gHistoryTree.selectItem(children.firstChild); gHistoryTree.focus();   RefreshSort(); 
add: gHistoryOutliner.focus(); gHistoryOutliner.outlinerBoxObject.view.selection.select(0); 
context: function HistoryInit() {    gHistoryTree =      document.getElementById("historyTree");    gDeleteByHostname = document.getElementById("menu_deleteByHostname");    gDeleteByDomain =   document.getElementById("menu_deleteByDomain");    gHistoryBundle =    document.getElementById("historyBundle");    gHistoryStatus =    document.getElementById("statusbar-display");    var treeController = new nsTreeController(gHistoryTree);    var historyController = new nsHistoryController;    gHistoryTree.controllers.appendController(historyController);    gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);    if ("arguments" in window && window.arguments[0] && window.arguments.length >= 1) {      // We have been supplied a resource URI to root the tree on      var uri = window.arguments[0];      setRoot(uri);      if (uri.substring(0,5) == "find:") {        // Update the windowtype so that future searches are directed         // there and the window is not re-used for bookmarks.         var windowNode = document.getElementById("history-window");        windowNode.setAttribute("windowtype", "history:searchresults");      }    }    var children = document.getElementById('treechildren-bookmarks');    if (children.firstChild)        gHistoryTree.selectItem(children.firstChild);    gHistoryTree.focus();    // do a sort    RefreshSort();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/649e7260b21e1aff69bcdf02d6d213823602b19b/history.js/clean/suite/common/history/history.js