mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 11:38:16 +00:00
Bug 320851: http authentication (401) prompt no longer displays scheme, r+sr=darin
This commit is contained in:
parent
40268c1df5
commit
41b4ad9c1a
@ -2768,8 +2768,20 @@ nsHttpChannel::PromptForIdentity(const char *scheme,
|
||||
{
|
||||
NS_NAMED_LITERAL_STRING(proxyText, "EnterUserPasswordForProxy");
|
||||
NS_NAMED_LITERAL_STRING(originText, "EnterUserPasswordForRealm");
|
||||
const PRUnichar *text = proxyAuth ? proxyText.get() : originText.get();
|
||||
|
||||
|
||||
const PRUnichar *text;
|
||||
if (proxyAuth) {
|
||||
text = proxyText.get();
|
||||
} else {
|
||||
text = originText.get();
|
||||
|
||||
// prepend "scheme://"
|
||||
nsAutoString schemeU;
|
||||
CopyASCIItoUTF16(scheme, schemeU);
|
||||
schemeU.AppendLiteral("://");
|
||||
displayHost.Insert(schemeU, 0);
|
||||
}
|
||||
|
||||
const PRUnichar *strings[] = { realmU.get(), displayHost.get() };
|
||||
|
||||
rv = bundle->FormatStringFromName(text, strings, 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user