mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
bug 1324863 - paper over null parent proxy accessible r=davidb
This commit is contained in:
parent
cc58e177e9
commit
b09bcb000f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user