Bug 630828 - Crash [@ nsAccessible::UpdateChildren() ], r=davidb, a=blocking2.x+

This commit is contained in:
Alexander Surkov 2011-03-28 22:59:08 +09:00
Родитель 880ba9f38e
Коммит 062cd82f19
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -1472,7 +1472,10 @@ nsDocAccessible::NotifyOfCachingEnd(nsAccessible* aAccessible)
// Make sure we keep children updated. While we're inside of caching
// loop then we must exist it with cached children.
nsAccessible* container = GetContainerAccessible(content);
container->UpdateChildren();
NS_ASSERTION(container,
"Got a referenced element that is not in document!");
if (container)
container->UpdateChildren();
}
}
mInvalidationList.Clear();