Don't throw from location.reload() if it's a POST page and the user cancels the

reload.  Bug 249405, r=darin, sr=jst


git-svn-id: svn://10.0.0.236/trunk@160333 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-08-04 03:35:39 +00:00
parent 03b3717bb3
commit 4876ea1f40
4 changed files with 12 additions and 6 deletions

View File

@@ -6459,11 +6459,11 @@ nsDocShell::LoadHistoryEntry(nsISHEntry * aEntry, PRUint32 aLoadType)
if (NS_SUCCEEDED(rv) && messageStr) {
prompter->Confirm(nsnull, messageStr, &repost);
/* If the user pressed cancel in the dialog,
* return failure.
/* If the user pressed cancel in the dialog, return. We're
* done here.
*/
if (!repost)
return NS_ERROR_FAILURE;
return NS_BINDING_ABORTED;
}
}
}