rem: var tree = document.getElementById("historyTree"); switch(groupingType) { case "none": tree.setAttribute("ref", "NC:HistoryRoot"); break; case "site": tree.setAttribute("ref", "find:datasource=history&groupby=Hostname"); break; case "day": default: tree.setAttribute("ref", "NC:HistoryByDate"); break; } gPrefService.setCharPref("browser.history.grouping", groupingType); 
add: gHistoryGrouping = aGroupingType; UpdateTreeGrouping(); gPrefService.setCharPref("browser.history.grouping", aGroupingType); 
context: function GroupBy(groupingType){    var tree = document.getElementById("historyTree");    switch(groupingType) {    case "none":        tree.setAttribute("ref", "NC:HistoryRoot");        break;    case "site":        tree.setAttribute("ref", "find:datasource=history&groupby=Hostname");        break;    case "day":    default:        tree.setAttribute("ref", "NC:HistoryByDate");        break;    }    gPrefService.setCharPref("browser.history.grouping", groupingType);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6217b4e655605e272563811dd65f5d17684d5ec6/history.js/clean/xpfe/components/history/resources/history.js