Backed out changeset 7de6b799a753 (asserts for bug 637214) because they still fire. a=fizzy-citrus-soft-drinks

This commit is contained in:
Boris Zbarsky 2011-03-02 10:36:44 -05:00
Родитель a0de05da93
Коммит 3d3f8d8303
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -346,9 +346,6 @@ nsIdentifierMapEntry::FireChangeCallbacks(Element* aOldElement,
Element* aNewElement,
PRBool aImageOnly)
{
NS_ASSERTION(!nsContentUtils::IsSafeToRunScript(),
"Missing script blockers around code that modifies id-hash");
if (!mChangeCallbacks)
return;
@ -2625,9 +2622,6 @@ nsDocument::RemoveFromNameTable(Element *aElement, nsIAtom* aName)
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));
@ -2640,8 +2634,6 @@ 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) {