fix bug31929 - wrong way to throw a message box; r=rhp
This commit is contained in:
Родитель
bf5bd4427a
Коммит
e826ae8e3d
|
@ -50,4 +50,4 @@ MessageLoaded=Message loaded...
|
|||
PrintingMessage=Printing message...
|
||||
PrintingComplete=Printing complete.
|
||||
saveAttachmentFailed=Unable to save the attachment. Please check your file name and try again later.
|
||||
saveMessageFailed=Unable to save the message. Please check your file name and try again later.>>>>>>> 1.6
|
||||
saveMessageFailed=Unable to save the message. Please check your file name and try again later.
|
||||
|
|
|
@ -789,12 +789,16 @@ done:
|
|||
nsresult
|
||||
nsMessenger::Alert(const char *stringName)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
nsString errorMessage = GetString(nsString(stringName).GetUnicode());
|
||||
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(mWebShell));
|
||||
if (docShell)
|
||||
{
|
||||
nsCOMPtr<nsIPrompt> dialog(do_GetInterface(docShell));
|
||||
|
||||
NS_WITH_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, &rv);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = dialog->Alert(errorMessage.GetUnicode());
|
||||
if (dialog)
|
||||
rv = dialog->Alert(errorMessage.GetUnicode());
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче