rem: var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService); 
add: var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService); 
context: function haveSearchResults(){	var resultsTree = document.getElementById("Tree");	if( !resultsTree)	return(false);	var ds = resultsTree.database;	if (!ds)		return(false);    var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService);	if (rdf)	{		var source = rdf.GetResource( "NC:LastSearchRoot", true);		var childProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#LastText", true);		var target = ds.GetTarget(source, childProperty, true);		if (target)	target = target.QueryInterface(nsIRDFLiteral);		if (target)	target = target.Value;		if (target && target != "")		{			var textNode = document.getElementById("sidebar-search-text");			if (!textNode)	return(false);			// convert pluses (+) back to spaces			target = target.replace(/+/i, " ");			textNode.value = unescape(target);			return(true);		}	}	return(false);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/96cde4474fe82e4dacdcc727eaebd9308fd70684/search-panel.js/buggy/suite/common/search/search-panel.js