rem: var rdf = Components.classes["component: if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); 
add: var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService); 
context: function sidebarOpenURL(event, treeitem, root){  try {    if( pref ) {      var prefvalue = pref.GetBoolPref( "browser.search.use_double_clicks" );      mClickCount = prefvalue ? 2 : 1;    }     else      mClickCount = 1;  }  catch(e) {    mClickCount = 1;  }     if ((event.button != 1) || (event.detail != mClickCount))		return(false);	if (treeitem.getAttribute("container") == "true")		return(false);	if (treeitem.getAttribute("type") == "http://home.netscape.com/NC-rdf#BookmarkSeparator")		return(false);	var id = treeitem.getAttribute('id');	if (!id)		return(false);	// rjc: add support for anonymous resources; if the node has	// a "#URL" property, use it, otherwise default to using the id	try	{		var theRootNode = document.getElementById(root);		var ds = null;		if (rootNode)		{			ds = theRootNode.database;		}		var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();		if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);		if (rdf)		{			if (ds)			{				var src = rdf.GetResource(id, true);				var prop = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true);				var target = ds.GetTarget(src, prop, true);				if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral);				if (target)	target = target.Value;				if (target)	id = target;			}		}	}	catch(ex)	{	}  if ( window._content )    window._content.location = id;  else {    window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", id );  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6a80dfc41c74ac5b49360af43d1f736a30d98b45/search-panel.js/clean/suite/common/search/search-panel.js