mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1206165 - crash in mozilla::a11y::DocAccessible::UpdateTreeOnRemoval, r=davidb
This commit is contained in:
parent
73115f60ad
commit
726384e318
@ -2058,7 +2058,7 @@ DocAccessible::ValidateARIAOwned()
|
|||||||
for (uint32_t idx = 0; idx < childEls->Length(); idx++) {
|
for (uint32_t idx = 0; idx < childEls->Length(); idx++) {
|
||||||
nsIContent* childEl = childEls->ElementAt(idx);
|
nsIContent* childEl = childEls->ElementAt(idx);
|
||||||
Accessible* child = GetAccessible(childEl);
|
Accessible* child = GetAccessible(childEl);
|
||||||
if (child && !child->GetFrame()) {
|
if (child && child->IsInDocument() && !child->GetFrame()) {
|
||||||
UpdateTreeOnRemoval(child->Parent(), childEl);
|
UpdateTreeOnRemoval(child->Parent(), childEl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user