bug 1324863 - paper over null parent proxy accessible r=davidb

This commit is contained in:
Trevor Saunders 2017-01-23 16:36:29 -05:00
parent cc58e177e9
commit b09bcb000f

View File

@ -111,7 +111,11 @@ public:
*/
void RemoveChildDoc(DocAccessibleParent* aChildDoc)
{
aChildDoc->Parent()->ClearChildDoc(aChildDoc);
ProxyAccessible* parent = aChildDoc->Parent();
MOZ_ASSERT(parent);
if (parent) {
aChildDoc->Parent()->ClearChildDoc(aChildDoc);
}
mChildDocs.RemoveElement(aChildDoc);
aChildDoc->mParentDoc = nullptr;
MOZ_ASSERT(aChildDoc->mChildDocs.Length() == 0);