Bug 464009, r+sr=sicking, a=dveditz
git-svn-id: svn://10.0.0.236/trunk@255749 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1461,7 +1461,7 @@ nsHTMLFormElement::RemoveElement(nsIFormControl* aChild,
|
||||
// Find the index of the child. This will be used later if necessary
|
||||
// to find the default submit.
|
||||
PRUint32 index = controls.IndexOf(aChild);
|
||||
NS_ASSERTION(index != controls.NoIndex, "Child not in controls");
|
||||
NS_ENSURE_STATE(index != controls.NoIndex);
|
||||
|
||||
controls.RemoveElementAt(index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user