bug 1213606 - assert that we don't destroy a document's proxy until we destroy all of its children r=davidb

This commit is contained in:
Trevor Saunders 2015-10-14 10:55:10 -04:00
parent a9b18fae1a
commit 63a2b0bd12

View File

@ -262,6 +262,7 @@ DocAccessibleParent::Destroy()
mChildDocs[i]->Destroy();
for (auto iter = mAccessibles.Iter(); !iter.Done(); iter.Next()) {
MOZ_ASSERT(iter.Get()->mProxy != this);
ProxyDestroyed(iter.Get()->mProxy);
iter.Remove();
}