add:    var optionsRef = {}; var queriesRef = {}; PlacesUtils.history.queryStringToQueries(ORGANIZER_ROOT_HISTORY_UNSORTED, queriesRef, {}, optionsRef); SetSortingAndGrouping(optionsRef.value); var place = PlacesUtils.history.queriesToQueryString(queriesRef.value, 1, optionsRef.value); gHistoryTree.place = place; 
context: function HistorySidebarInit(){  gHistoryTree = document.getElementById("historyTree");  gSearchBox = document.getElementById("search-box");  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");  initContextMenu();  gSearchBox.focus();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/41a9b3f399aee6c328cb4a053cb3ffb62716f2d4/history-panel.js/buggy/browser/components/places/content/history-panel.js