rem:  gSearchBox.focus(); 
context: function HistoryCommonInit(){    gHistoryTree =  document.getElementById("historyTree");        gSearchBox = document.getElementById("search-box");    var treeController = new nsTreeController(gHistoryTree);    gHistoryGrouping = document.getElementById("viewButton").getAttribute("selectedsort");    if (gHistoryGrouping == "site")      document.getElementById("bysite").setAttribute("checked", "true");    else if (gHistoryGrouping == "visited")      document.getElementById("byvisited").setAttribute("checked", "true");    else if (gHistoryGrouping == "lastvisited")      document.getElementById("bylastvisited").setAttribute("checked", "true");    else if (gHistoryGrouping == "dayandsite")      document.getElementById("bydayandsite").setAttribute("checked", "true");    else      document.getElementById("byday").setAttribute("checked", "true");        // XXXBlake we should persist the last search value    // If it's empty, this will do the right thing and just group by the old grouping.    searchHistory(gSearchBox.value);        gSearchBox.focus();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0e163890cf289cbca337617886dbdc512f13e994/history.js/buggy/browser/components/history/content/history.js