зеркало из https://github.com/mozilla/gecko-dev.git
Bug 628603 - Crash in nsDocAccessible::CacheChildrenInSubtree [@ nsAccessNode::IsContent() ], r=davidb, a=blocking2.x+
This commit is contained in:
Родитель
062cd82f19
Коммит
5006389b43
|
@ -1953,8 +1953,9 @@ nsDocAccessible::CacheChildrenInSubtree(nsAccessible* aRoot)
|
|||
PRUint32 count = aRoot->GetChildCount();
|
||||
for (PRUint32 idx = 0; idx < count; idx++) {
|
||||
nsAccessible* child = aRoot->GetChildAt(idx);
|
||||
NS_ASSERTION(child, "Illicit tree change while tree is created!");
|
||||
// Don't cross document boundaries.
|
||||
if (child->IsContent())
|
||||
if (child && child->IsContent())
|
||||
CacheChildrenInSubtree(child);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче