rem: var rowIsContainer = gHistoryGrouping != "none" && currentIndex >= 0 && isContainer(gHistoryTree, currentIndex); 
add: var rowIsContainer = currentIndex < 0 || (gHistoryGrouping != "none" && isContainer(gHistoryTree, currentIndex)); 
context: function historyOnSelect(){    // every time selection changes, save the last hostname    gLastHostname = "";    gLastDomain = "";    var match;    var currentIndex = gHistoryTree.currentIndex;    var rowIsContainer = gHistoryGrouping != "none" && currentIndex >= 0 && isContainer(gHistoryTree, currentIndex);    var url = rowIsContainer ? "" : gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL");    if (url) {        if (!gIOService)            gIOService = Components.classes['@mozilla.org/network/io-service;1']                                   .getService(Components.interfaces.nsIIOService);        try {            gLastHostname = gIOService.newURI(url, null, null).host;            // matches the last foo.bar in foo.bar or baz.foo.bar            match = gLastHostname.match(/([^.]+\.[^.]+$)/);            if (match)                gLastDomain = match[1];        } catch (e) {}    }    if (gHistoryStatus)        gHistoryStatus.label = url;    document.commandDispatcher.updateCommands("select");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0ed3d7257da5225545214172d5a2f0f7740a5aea/history.js/clean/suite/common/history/history.js