bug 1326084 - fixup shutting down a ProxyAccessible with no child doc

This commit is contained in:
Trevor Saunders 2017-02-01 17:35:28 -05:00
parent b4bb4efe0f
commit 8765a50df4

View File

@ -39,7 +39,7 @@ ProxyAccessibleBase<Derived>::Shutdown()
for (uint32_t idx = 0; idx < childCount; idx++)
mChildren[idx]->Shutdown();
} else {
if (mChildren.Length() != 1)
if (mChildren.Length() > 1)
MOZ_CRASH("outer doc doesn't own adoc!");
mChildren[0]->AsDoc()->Unbind();