Backout asserts added for bug 637214 (a=orange).
authorAndreas Gal <gal@mozilla.com>
Tue, 01 Mar 2011 22:30:41 -0800
changeset 63252 18c62a838be0459052c2af08d8f7250b3c384075
parent 63250 65db1504a456cb1810fa607a3485777e178d8a45
child 63253 01bbfa9ef32294644b7b9341650a273d25443e38
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersorange
bugs637214
milestone2.0b13pre
Backout asserts added for bug 637214 (a=orange).
content/base/src/nsDocument.cpp
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -2620,33 +2620,28 @@ nsDocument::RemoveFromNameTable(Element 
     return;
 
   entry->RemoveNameElement(aElement);
 }
 
 void
 nsDocument::AddToIdTable(Element *aElement, nsIAtom* aId)
 {
-  NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
-               "Scripts should be blocked when manipulating the ID table");
-
   nsIdentifierMapEntry *entry =
     mIdentifierMap.PutEntry(nsDependentAtomString(aId));
 
   if (entry) { /* True except on OOM */
     entry->AddIdElement(aElement);
   }
 }
 
 void
 nsDocument::RemoveFromIdTable(Element *aElement, nsIAtom* aId)
 {
   NS_ASSERTION(aId, "huhwhatnow?");
-  NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
-               "Scripts should be blocked when manipulating the ID table");
 
   // Speed up document teardown
   if (mIdentifierMap.Count() == 0) {
     return;
   }
 
   nsIdentifierMapEntry *entry =
     mIdentifierMap.GetEntry(nsDependentAtomString(aId));