rem: grouping = ""; 
add: gHistoryGrouping = ""; 
context: function HistoryInit(){    gHistoryOutliner =  document.getElementById("historyOutliner");    gDeleteByHostname = document.getElementById("menu_deleteByHostname");    gDeleteByDomain =   document.getElementById("menu_deleteByDomain");    gHistoryBundle =    document.getElementById("historyBundle");    gHistoryStatus =    document.getElementById("statusbar-display");    var outlinerController = new nsOutlinerController(gHistoryOutliner, document.getElementById('historyOutlinerBody'));    var historyController = new nsHistoryController;    gHistoryOutliner.controllers.appendController(historyController);    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");        }        document.getElementById("groupingMenu").setAttribute("hidden", "true");    }    else {        gPrefService = Components.classes["@mozilla.org/preferences-service;1"]                                 .getService(Components.interfaces.nsIPrefBranch);        try {            var grouping = gPrefService.getCharPref("browser.history.grouping");        }        catch(e) {            grouping = "";        }        GroupBy(grouping);        if (gHistoryStatus) {  // must be the window            switch(grouping) {            case "site":                document.getElementById("groupBySite").setAttribute("checked", "true");                break;            case "none":                document.getElementById("groupByNone").setAttribute("checked", "true");                break;            case "day":            default:                document.getElementById("groupByDay").setAttribute("checked", "true");            }                }    }     gHistoryOutliner.focus();    gHistoryOutliner.outlinerBoxObject.view.selection.select(0);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6c769e76e9803b1f1b3531a54ac85b147c8b5dbc/history.js/clean/xpfe/components/history/resources/history.js