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

@@ -941,9 +941,8 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
if (NS_SUCCEEDED(rv) && messageStr) {
prompter->Confirm(nsnull, messageStr, &repost);
/* If the user pressed cancel in the dialog,
* return failure. Don't try to load the page with out
* the post data.
/* If the user pressed cancel in the dialog, return. Don't
* try to load the page with out the post data.
*/
if (!repost)
return NS_OK;