Bug 1206165 - crash in mozilla::a11y::DocAccessible::UpdateTreeOnRemoval, part2, r=davidb

This commit is contained in:
Alexander Surkov 2015-09-28 16:04:40 -04:00
parent 0c9a411ddc
commit 744243152a

View File

@ -2071,6 +2071,10 @@ DocAccessible::ValidateARIAOwned()
nsIContent* childEl = childEls->ElementAt(idx);
Accessible* child = GetAccessible(childEl);
if (child && child->IsInDocument() && !child->GetFrame()) {
if (!child->Parent()) {
NS_ERROR("An element in the document doesn't have a parent?");
continue;
}
UpdateTreeOnRemoval(child->Parent(), childEl);
}
}