rem: var httpDS = RDF.GetDataSource("rdf:httpindex"); 
add: var httpDS = HTTPIndex.DataSource; 
context: function Init(){    debug("directory.js: Init()\n");    // 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: Add the HTTPIndex datasource into the tree    var tree = document.getElementById('tree');    // Note: set encoding BEFORE setting "ref" (important!)    var RDF = Components.classes["component://netscape/rdf/rdf-service"].getService();    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";            // Use a default character set.            if (window._content.defaultCharacterset)            {                httpDS.encoding = window._content.defaultCharacterset;            }        }    }    // set window title    var theWindow = window._content.parentWindow;    if (theWindow)    {        theWindow.title = baseURI;    }    // root the tree (do this last)    tree.setAttribute("ref", baseURI);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f0b0cb4697f96776fb0bcd51d691ce8fdad3a1f1/directory.js/buggy/xpfe/components/directory/directory.js