Fix crash reported in bug 235923. In odd cases when we get into situations where we're submitting a form while we're in the middle of submitting the same form (waiting for a modal dialog), the pending submission from the first call may get deleted. r+sr=shaver@mozilla.org

git-svn-id: svn://10.0.0.236/trunk@162069 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com 2004-09-10 08:07:04 +00:00
parent d7e11640f4
commit 392d7bbfda

View File

@ -1226,6 +1226,8 @@ nsHTMLFormElement::OnSubmitClickEnd()
NS_IMETHODIMP
nsHTMLFormElement::FlushPendingSubmission()
{
nsCOMPtr<nsIFormSubmission> kunkFuDeathGrip(mPendingSubmission);
if (!mPendingSubmission) {
return NS_OK;
}