rem: gResultsTree.setAttribute("ref", gSearchDatasource.URI); 
add: gThreadTree.setAttribute("ref", gSearchDatasource.URI); 
context: function setupDatasource() {    RDF = Components.classes[rdfServiceProgID].getService(Components.interfaces.nsIRDFService);        gSearchDatasource = Components.classes[rdfDatasourcePrefix + "msgsearch"].createInstance(Components.interfaces.nsIRDFDataSource);    dump("The root is " + gSearchDatasource.URI + "\n");    gResultsTree.setAttribute("ref", gSearchDatasource.URI);        // the thread pane needs to use the search datasource (to get the    // actual list of messages) and the message datasource (to get any    // attributes about each message)    gSearchSession = Components.classes[searchSessionProgID].createInstance(Components.interfaces.nsIMsgSearchSession);        gResultsTree.database.AddDataSource(gSearchDatasource);    var messageDatasource = Components.classes[rdfDatasourcePrefix + "mailnewsmessages"].createInstance(Components.interfaces.nsIRDFDataSource);    gResultsTree.database.AddDataSource(messageDatasource);        // the datasource is a listener on the search results    searchListener = gSearchDatasource.QueryInterface(Components.interfaces.nsIMsgSearchNotify);    gSearchSession.registerListener(searchListener);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2dd2724e7893866e253b2e1ef334ffd52d104d87/SearchDialog.js/buggy/mailnews/base/search/resources/content/SearchDialog.js