Use the default value supplied to prompt() if no stored value was found. (bug 216324)

This commit is contained in:
bryner%brianryner.com 2003-09-08 03:17:42 +00:00
parent 06c7c1b2b4
commit 2fffc1c22f

View File

@ -79,9 +79,13 @@ nsSingleSignonPrompt::Prompt(const PRUnichar* aDialogTitle,
outUser,
outPassword);
value = ToNewUnicode(outUser);
if (!outUser.IsEmpty())
value = ToNewUnicode(outUser);
}
if (!value && aDefaultText)
value = ToNewUnicode(nsDependentString(aDefaultText));
mPrompt->Prompt(aDialogTitle,
aText,
&value,