rem:  if (gHistoryStatus) gHistoryStatus.label = url; } else { if (gHistoryStatus) gHistoryStatus.label = ""; 
context: function historyOnSelect(){    // every time selection changes, save the last hostname    gLastHostname = "";    gLastDomain = "";    var match;    var currentIndex = gHistoryTree.currentIndex;    var rowIsContainer = (gHistoryGrouping == "day" || gHistoryGrouping == "dayandsite") ? isContainer(gHistoryTree, currentIndex) : false;    var url = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder).getResourceAtIndex(currentIndex).Value;    if (url && !rowIsContainer) {        // matches scheme://(hostname)...        match = url.match(/^.*?:\/\/(?:([^\/:]*)(?::([^\/:]*))?@)?([^\/:]*)(?::([^\/:]*))?(.*)$/);        if (match && match.length>1)            gLastHostname = match[3];              if (gHistoryStatus)            gHistoryStatus.label = url;    }    else {        if (gHistoryStatus)            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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/26fbf3bbaa26910b348a6ecca41876fd7de753ca/history.js/buggy/browser/components/history/content/history.js