add:  var tree = document.getElementById('tree');   var RDF = Components.classes["component: if (RDF)    RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService); if (RDF) { var httpDS = RDF.GetDataSource("rdf:httpindex"); if (httpDS) httpDS = httpDS.QueryInterface(Components.interfaces.nsIHTTPIndex); if (httpDS) {   httpDS.encoding = "ISO-8859-1"; } }   
context: function Init(){    debug("directory.js: Init()\n");    // Add the HTTPIndex datasource into the tree    var tree = document.getElementById('tree');    // Initialize the tree's base URL to whatever the HTTPIndex is rooted at    var baseURI = HTTPIndex.BaseURL;    // fix bug # 37102: if its a FTP directory    // ensure it ends with a trailing slash    if (baseURI && (baseURI.indexOf("ftp://") == 0) &&    	(baseURI.substr(baseURI.length - 1) != "/"))    {    	debug("append traiing slash to FTP directory URL\n");    	baseURI += "/";    }    debug("base URL = " + baseURI + "\n");        // Note: set encoding for FTP URLs BEFORE setting "ref"    HTTPIndex.encoding = "ISO-8859-1";    // re-root the tree    tree.setAttribute("ref", baseURI);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/fb988d7c6f353dc0540c654eca2bdf496b0a592d/directory.js/buggy/suite/common/directory/directory.js