зеркало из https://github.com/mozilla/gecko-dev.git
Bug #34374 --> don't bring up an alert saying the login failed if the user canceled the password dialog
during a redirector request.
This commit is contained in:
Родитель
24243bee7f
Коммит
787b9a4065
|
@ -1685,6 +1685,11 @@ nsresult nsImapIncomingServer::RequestOverrideInfo(nsIMsgWindow *aMsgWindow)
|
|||
|
||||
if (!((const char *) password) || nsCRT::strlen((const char *) password) == 0)
|
||||
PromptForPassword(getter_Copies(password), aMsgWindow);
|
||||
|
||||
// if we still don't have a password then the user must have hit cancel so just
|
||||
// fall out...
|
||||
if (!((const char *) password) || nsCRT::strlen((const char *) password) == 0)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
rv = m_logonRedirector->Logon(userName, password, logonRedirectorRequester, nsMsgLogonRedirectionServiceIDs::Imap);
|
||||
|
|
Загрузка…
Ссылка в новой задаче