rem: dump("history: url = " + url + "\n"); 
context: function OpenURL(aTarget){    var currentIndex = gHistoryTree.currentIndex;         var builder = gHistoryTree.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);    var url = builder.getResourceAtIndex(currentIndex).ValueUTF8;    var uri = Components.classes["@mozilla.org/network/standard-url;1"].                createInstance(Components.interfaces.nsIURI);    dump("history: url = " + url + "\n");    uri.spec = url;    if (uri.schemeIs("javascript") || uri.schemeIs("data")) {      var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]                                       .getService(Components.interfaces.nsIStringBundleService);      var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                                    .getService(Components.interfaces.nsIPromptService);      var historyBundle = strBundleService.createBundle("chrome://communicator/locale/history/history.properties");      var brandBundle = strBundleService.createBundle("chrome://global/locale/brand.properties");            var brandStr = brandBundle.GetStringFromName("brandShortName");      var errorStr = historyBundle.GetStringFromName("load-js-data-url-error");      promptService.alert(window, brandStr, errorStr);      return false;    }    if (aTarget != "current") {      var count = gHistoryTree.treeBoxObject.view.selection.count;      var URLArray = [];      if (count == 1) {        if (isContainer(gHistoryTree, currentIndex))          openDialog("chrome://communicator/content/history/history.xul",                      "", "chrome,all,dialog=no", url, "newWindow");        else          URLArray.push(url);      }      else {        var min = new Object();         var max = new Object();        var rangeCount = gHistoryTree.treeBoxObject.view.selection.getRangeCount();        for (var i = 0; i < rangeCount; ++i) {          gHistoryTree.treeBoxObject.view.selection.getRangeAt(i, min, max);          for (var k = max.value; k >= min.value; --k) {            url = gHistoryTree.treeBoxObject.view.getCellText(k, "URL");            URLArray.push(url);          }        }      }      if (aTarget == "window") {        for (i = 0; i < URLArray.length; i++) {          openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no", URLArray[i]);        }      } else {        if (URLArray.length > 0)          OpenURLArrayInTabs(URLArray);      }    }            else if (!isContainer(gHistoryTree, currentIndex))      openTopWin(url);    return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/778e2e29fa2f697ee039b5a7f2119d3cffaabcd8/history.js/clean/xpfe/components/history/resources/history.js