Bug 611381. Don't assume we have a prompt. r=jst, a=blocker

This commit is contained in:
Boris Zbarsky
2011-01-19 17:40:02 -05:00
parent dea8d0623a
commit 95d7de688b

View File

@@ -10582,6 +10582,9 @@ nsDocShell::ConfirmRepost(PRBool * aRepost)
{
nsCOMPtr<nsIPrompt> prompter;
CallGetInterface(this, static_cast<nsIPrompt**>(getter_AddRefs(prompter)));
if (!prompter) {
return NS_ERROR_NOT_AVAILABLE;
}
nsCOMPtr<nsIStringBundleService> stringBundleService =
mozilla::services::GetStringBundleService();