nsCAutoString strippedRealm;
SINGSIGN_RestoreSignonData(nsIPrompt* dialog, nsIURI* passwordRealm, const PRUnichar* name, PRUnichar** value, PRUint32 formNumber, PRUint32 elementNumber) {  if (!passwordRealm)    return;    nsCAutoString strippedRealm;  /* Hacky security check: If address is of a scheme that   * doesn't support hostnames, we have no host to get the signon data from,   * so we must not attempt to restore the signon data (bug 159484) */  nsresult rv = passwordRealm->GetHost(strippedRealm);  if (NS_FAILED(rv))    return;  si_RestoreSignonData(dialog, strippedRealm.get(), name, value, formNumber, elementNumber);}