mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1231919 - crash in mozilla::a11y::DocAccessible::ValidateARIAOwned, r=davidb
This commit is contained in:
parent
ec0fba6505
commit
41b5e92c36
@ -858,7 +858,7 @@ public:
|
|||||||
bool IsDefunct() const { return mStateFlags & eIsDefunct; }
|
bool IsDefunct() const { return mStateFlags & eIsDefunct; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if the accessible is no longer in the document.
|
* Return false if the accessible is no longer in the document.
|
||||||
*/
|
*/
|
||||||
bool IsInDocument() const { return !(mStateFlags & eIsNotInDocument); }
|
bool IsInDocument() const { return !(mStateFlags & eIsNotInDocument); }
|
||||||
|
|
||||||
|
@ -1983,7 +1983,8 @@ DocAccessible::ValidateARIAOwned()
|
|||||||
nsTArray<RefPtr<Accessible> >* children = it.UserData();
|
nsTArray<RefPtr<Accessible> >* children = it.UserData();
|
||||||
|
|
||||||
// Owner is about to die, put children back if applicable.
|
// Owner is about to die, put children back if applicable.
|
||||||
if (!owner->IsInDocument()) {
|
if (!mAccessibleCache.GetWeak(reinterpret_cast<void*>(owner)) ||
|
||||||
|
!owner->IsInDocument()) {
|
||||||
PutChildrenBack(children, 0);
|
PutChildrenBack(children, 0);
|
||||||
it.Remove();
|
it.Remove();
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user