warnings fixes, and fix for #21901, all password dialogs to have titles
if the user passes one in, or use "Password" if they pass null. git-svn-id: svn://10.0.0.236/trunk@56308 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -518,7 +518,8 @@ NS_IMETHODIMP nsNetSupportDialog::PromptUsernameAndPassword(const PRUnichar *tex
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsNetSupportDialog::PromptPassword(const PRUnichar *text,
|
||||
NS_IMETHODIMP nsNetSupportDialog::PromptPassword(const PRUnichar *text,
|
||||
const PRUnichar *windowTitle,
|
||||
PRUnichar **pwd,
|
||||
PRBool *returnValue)
|
||||
{
|
||||
@@ -532,7 +533,7 @@ NS_IMETHODIMP nsNetSupportDialog::PromptPassword(const PRUnichar *text,
|
||||
rv = nsComponentManager::CreateInstance( kCommonDialogsCID,0, nsICommonDialogs::GetIID(),
|
||||
(void**)&dialogService );
|
||||
if( NS_SUCCEEDED ( rv ) )
|
||||
rv = dialogService->PromptPassword( window, NULL,text, pwd, returnValue );
|
||||
rv = dialogService->PromptPassword( window, windowTitle,text, pwd, returnValue );
|
||||
|
||||
}
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user