rem: var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL"); 
add: var url = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder).getResourceAtIndex(currentIndex).Value; 
context: function historyOnSelect(){    // every time selection changes, save the last hostname    gLastHostname = "";    gLastDomain = "";    var match;    var currentIndex = gHistoryTree.currentIndex;    var rowIsContainer = gHistoryGrouping == "day" ? isContainer(gHistoryTree, currentIndex) : false;    var url = gHistoryTree.treeBoxObject.view.getCellText(currentIndex, "URL");    if (url && !rowIsContainer) {        // matches scheme://(hostname)...        match = url.match(/^.*?:\/\/(?:([^\/:]*)(?::([^\/:]*))?@)?([^\/:]*)(?::([^\/:]*))?(.*)$/);        if (match && match.length>1)            gLastHostname = match[3];              gHistoryStatus.label = url;    }    else {        gHistoryStatus.label = "";    }    if (gLastHostname) {        // matches the last foo.bar in foo.bar or baz.foo.bar        match = gLastHostname.match(/([^.]+\.[^.]+$)/);        if (match)            gLastDomain = match[1];    }    document.commandDispatcher.updateCommands("select");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d21e9de22c275cbc83150a490ee1b5ec3fda1703/history.js/clean/browser/components/history/content/history.js