rv = MakeURI(str,aBaseURI,aAbsURI);
rv = MakeURI(str.get(),aBaseURI,aAbsURI);
static nsresult CheckLoadURI(nsIURI *aBaseURI, const nsAReadableString& aURI,                             nsIURI **aAbsURI){  // XXX URL escape?  nsCAutoString str; str.Assign(NS_ConvertUCS2toUTF8(aURI));  *aAbsURI = nsnull;  nsresult rv;  rv = MakeURI(str,aBaseURI,aAbsURI);  if (NS_SUCCEEDED(rv)) {    nsCOMPtr<nsIScriptSecurityManager> securityManager =              do_GetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID, &rv);    if (NS_SUCCEEDED(rv)) {      rv= securityManager->CheckLoadURI(aBaseURI,                                         *aAbsURI,                                         nsIScriptSecurityManager::DISALLOW_FROM_MAIL);    }  }  if (NS_FAILED(rv)) {    NS_IF_RELEASE(*aAbsURI);  }  return rv;}