si_RestoreSignonData(dialog, realm.get(), name, value, formNumber, elementNumber); if (*value == nsnull) {  nsresult rv = passwordRealm->GetHost(realm); if (NS_SUCCEEDED(rv)) si_RestoreSignonData(dialog, realm.get(), name, value, formNumber, elementNumber); }
nsCAutoString legacyRealm; if (NS_FAILED(passwordRealm->GetHost(legacyRealm))) return;  si_RestoreSignonData(dialog, realm.get(), legacyRealm.get(), name, value, formNumber, elementNumber);  LOG(("exit SINGSIGN_RestoreSignonData [value=%s]\n", *value ? NS_LossyConvertUCS2toASCII(*value).get() : "(null)"));
SINGSIGN_RestoreSignonData(nsIPrompt* dialog, nsIURI* passwordRealm, const PRUnichar* name, PRUnichar** value, PRUint32 formNumber, PRUint32 elementNumber) {  if (!passwordRealm)    return;    nsCAutoString realm;  if (!si_ExtractRealm(passwordRealm, realm))    return;  si_RestoreSignonData(dialog, realm.get(), name, value, formNumber, elementNumber);  if (*value == nsnull) {    // try the old style host-only key format    nsresult rv = passwordRealm->GetHost(realm);    if (NS_SUCCEEDED(rv))      si_RestoreSignonData(dialog, realm.get(), name, value, formNumber, elementNumber);  }}