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