mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Use the default value supplied to prompt() if no stored value was found. (bug 216324)
This commit is contained in:
parent
06c7c1b2b4
commit
2fffc1c22f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user