rv = NS_NewURI(getter_AddRefs(url), relatedLinksQueryURL);
rv = NS_NewURI(getter_AddRefs(url), queryURL);
RelatedLinksHandlerImpl::SetURL(const char* aURL){	NS_PRECONDITION(aURL != nsnull, "null ptr");	if (! aURL)		return NS_ERROR_NULL_POINTER;	nsresult rv;	if (mRelatedLinksURL)		PL_strfree(mRelatedLinksURL);	mRelatedLinksURL = PL_strdup(aURL);	if (! mRelatedLinksURL)		return NS_ERROR_OUT_OF_MEMORY;	// Flush the old links. This'll force notifications to propagate, too.	nsCOMPtr<nsIRDFPurgeableDataSource> purgeable = do_QueryInterface(mInner);	NS_ASSERTION(purgeable, "uh oh, this datasource isn't purgeable!");	if (! purgeable)		return NS_ERROR_UNEXPECTED;	rv = purgeable->Sweep();	if (NS_FAILED(rv)) return rv;	nsAutoString	relatedLinksQueryURL(*mRLServerURL);	relatedLinksQueryURL.AppendWithConversion(mRelatedLinksURL);	nsCOMPtr<nsIURI> url;	rv = NS_NewURI(getter_AddRefs(url), relatedLinksQueryURL);	if (NS_FAILED(rv)) return rv;	nsCOMPtr<nsIStreamListener> listener;	rv = NS_NewRelatedLinksStreamListener(mInner, getter_AddRefs(listener));	if (NS_FAILED(rv)) return rv;	// XXX: Should there be a LoadGroup?	rv = NS_OpenURI(listener, nsnull, url, nsnull);	if (NS_FAILED(rv)) return rv;	return NS_OK;}