зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1231919 - crash in mozilla::a11y::DocAccessible::ValidateARIAOwned, r=davidb
This commit is contained in:
Родитель
135fbc4865
Коммит
37b5a7125a
|
@ -858,7 +858,7 @@ public:
|
|||
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); }
|
||||
|
||||
|
|
|
@ -1983,7 +1983,8 @@ DocAccessible::ValidateARIAOwned()
|
|||
nsTArray<RefPtr<Accessible> >* children = it.UserData();
|
||||
|
||||
// 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);
|
||||
it.Remove();
|
||||
continue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче