diff --git a/mozilla/content/html/content/src/nsHTMLFormElement.cpp b/mozilla/content/html/content/src/nsHTMLFormElement.cpp index bdfbd284c05..a006a97712a 100644 --- a/mozilla/content/html/content/src/nsHTMLFormElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLFormElement.cpp @@ -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);