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:
parent
d7e11640f4
commit
392d7bbfda
@ -1226,6 +1226,8 @@ nsHTMLFormElement::OnSubmitClickEnd()
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFormElement::FlushPendingSubmission()
|
||||
{
|
||||
nsCOMPtr<nsIFormSubmission> kunkFuDeathGrip(mPendingSubmission);
|
||||
|
||||
if (!mPendingSubmission) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user