rem: case "dayandsite": 
add: case "dayandsite": groups.push(NHQO.GROUP_BY_DAY); case "site": groups.push(NHQO.GROUP_BY_HOST); 
context: function searchHistory(aInput){  var query = PlacesUtils.history.getNewQuery();  var options = PlacesUtils.history.getNewQueryOptions();  const NHQO = Ci.nsINavHistoryQueryOptions;  var sortingMode;  var groups = [];   var resultType;  if (aInput) {    query.searchTerms = aInput;    sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;    resultType = NHQO.RESULTS_AS_URI;  }  else {    switch (gHistoryGrouping) {      case "site":        resultType = NHQO.RESULTS_AS_URI;        sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;        break;       case "visited":        resultType = NHQO.RESULTS_AS_URI;        sortingMode = NHQO.SORT_BY_VISITCOUNT_DESCENDING;        break;       case "lastvisited":        resultType = NHQO.RESULTS_AS_URI;        sortingMode = NHQO.SORT_BY_DATE_DESCENDING;        break;       case "dayandsite":        resultType = NHQO.RESULTS_AS_VISIT;        groups.push(NHQO.GROUP_BY_DAY);        groups.push(NHQO.GROUP_BY_HOST);        sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;        break;      default:        resultType = NHQO.RESULTS_AS_VISIT;        groups.push(NHQO.GROUP_BY_DAY);        sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;        break;    }  }  options.setGroupingMode(groups, groups.length);  options.sortingMode = sortingMode;  options.resultType = resultType;  // call load() on the tree manually  // instead of setting the place attribute in history-panel.xul  // otherwise, we will end up calling load() twice  gHistoryTree.load([query], options);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/f4dc22d3449d3748bba6c262579db901065fc948/history-panel.js/buggy/browser/components/places/content/history-panel.js