fixes orangeness on tinderboxen, b=63878.

This commit is contained in:
darin%netscape.com 2002-03-15 02:27:02 +00:00
Родитель 9cf86aee4f
Коммит 093940ff41
1 изменённых файлов: 17 добавлений и 14 удалений

Просмотреть файл

@ -1029,26 +1029,29 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
// before we could read any data from it
errorStr = "netReset";
break;
case NS_BINDING_ABORTED:
break;
default:
NS_NOTREACHED("would be nice to add an alert here");
errorStr = "unknownError";
break;
}
nsCOMPtr<nsIPrompt> prompter;
nsCOMPtr<nsIStringBundle> stringBundle;
if (errorStr) {
nsCOMPtr<nsIPrompt> prompter;
nsCOMPtr<nsIStringBundle> stringBundle;
rv = GetPromptAndStringBundle(getter_AddRefs(prompter),
getter_AddRefs(stringBundle));
if (!stringBundle) {
return rv;
rv = GetPromptAndStringBundle(getter_AddRefs(prompter),
getter_AddRefs(stringBundle));
if (!stringBundle) {
return rv;
}
nsXPIDLString messageStr;
rv = stringBundle->GetStringFromName(NS_ConvertASCIItoUCS2(errorStr).get(),
getter_Copies(messageStr));
if (NS_FAILED(rv)) return rv;
prompter->Alert(nsnull, messageStr);
}
nsXPIDLString messageStr;
rv = stringBundle->GetStringFromName(NS_ConvertASCIItoUCS2(errorStr).get(),
getter_Copies(messageStr));
if (NS_FAILED(rv)) return rv;
prompter->Alert(nsnull, messageStr);
}
} // if we have a host