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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user