Bug 515257 - Remove bogus assertion on optgroup child removal. r=bnewman.
authorHenri Sivonen <hsivonen@iki.fi>
Wed, 21 Oct 2009 17:03:01 +0300
changeset 34989 3010876348a6f896a968423f88670ef7077c493f
parent 34988 6bd60dd5c0664b9ac215fe9f1602aa2a2f1f6e2c
child 34990 47c00081fcd25b83ffeb10a8cc0878b87d33ed3f
push id10389
push userhsivonen@iki.fi
push dateWed, 18 Nov 2009 12:26:04 +0000
treeherdermozilla-central@c61a7e1570c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbnewman
bugs515257
milestone1.9.3a1pre
Bug 515257 - Remove bogus assertion on optgroup child removal. r=bnewman.
content/html/content/src/nsHTMLOptGroupElement.cpp
--- a/content/html/content/src/nsHTMLOptGroupElement.cpp
+++ b/content/html/content/src/nsHTMLOptGroupElement.cpp
@@ -181,17 +181,16 @@ nsHTMLOptGroupElement::InsertChildAt(nsI
     safeMutation.MutationFailed();
   }
   return rv;
 }
 
 nsresult
 nsHTMLOptGroupElement::RemoveChildAt(PRUint32 aIndex, PRBool aNotify, PRBool aMutationEvent)
 {
-  NS_ASSERTION(aMutationEvent, "Someone tried to inhibit mutation events on optgroup child removal.");
   nsSafeOptionListMutation safeMutation(GetSelect(), this, nsnull, aIndex);
   nsresult rv = nsGenericHTMLElement::RemoveChildAt(aIndex, aNotify, aMutationEvent);
   if (NS_FAILED(rv)) {
     safeMutation.MutationFailed();
   }
   return rv;
 }