rem: var rdf = nsJSComponentManager.getService(RDFSERVICE_PROGID, "nsIRDFService"); 
add: var rdf = nsJSComponentManager.getService(RDFSERVICE_CONTRACTID, "nsIRDFService"); 
context: function switchTab( aPageIndex ){	var deck = document.getElementById( "advancedDeck" );	deck.setAttribute( "index", aPageIndex );    	// decide whether to show/hide/enable/disable save search query button	if (aPageIndex != 0)	return(true);	var saveQueryButton = document.getElementById("saveQueryButton");	if (!saveQueryButton)	return(true);	var resultsTree = document.getElementById("Tree");	if( !resultsTree)	return(false);	var ds = resultsTree.database;	if (!ds)		return(false);	var	haveSearchRef = false;  var rdf = nsJSComponentManager.getService(RDFSERVICE_PROGID, "nsIRDFService");	if (rdf) {		// look for last search URI		var source = rdf.GetResource( "NC:LastSearchRoot", true);		var childProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#ref", true);		var target = ds.GetTarget(source, childProperty, true);		if (target)	target = target.QueryInterface(nsIRDFLiteral);		if (target)	target = target.Value;		if (target) haveSearchRef = true;	}  saveQueryButton.disabled = haveSearchRef ? false : true;  return(true);}
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