Bug 1294500 - MOZ_ASSERT_UNREACHABLE() in DocAccessible.cpp introduced in bug 1246447 triggers in Thunderbird, r=yzen

This commit is contained in:
Alexander Surkov 2016-08-19 11:29:33 -04:00
Родитель e6e502f631
Коммит 9b8e4e076e
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -764,10 +764,8 @@ DocAccessible::AttributeChanged(nsIDocument* aDocument,
accessible = this;
}
if (!accessible->IsBoundToParent()) {
MOZ_ASSERT_UNREACHABLE("DOM attribute change on accessible detached from tree");
return;
}
MOZ_ASSERT(accessible->IsBoundToParent() || accessible->IsDoc(),
"DOM attribute change on an accessible detached from the tree");
// Fire accessible events iff there's an accessible, otherwise we consider
// the accessible state wasn't changed, i.e. its state is initial state.
@ -980,7 +978,7 @@ DocAccessible::ARIAAttributeChanged(Accessible* aAccessible, nsIAtom* aAttribute
if (aAttribute == nsGkAtoms::aria_hidden) {
bool isDefined = aria::HasDefinedARIAHidden(elm);
if (isDefined != aAccessible->IsARIAHidden() &&
!aAccessible->Parent()->IsARIAHidden()) {
(!aAccessible->Parent() || !aAccessible->Parent()->IsARIAHidden())) {
aAccessible->SetARIAHidden(isDefined);
RefPtr<AccEvent> event =