зеркало из https://github.com/mozilla/gecko-dev.git
Bug 627099 - Crash [@ nsDocAccessible::RecreateAccessible(nsINode*) ], r=surkov, a=blockingBetaN+
This commit is contained in:
Родитель
b7e24a2d12
Коммит
60fe71d2cb
|
@ -1454,7 +1454,15 @@ nsDocAccessible::RecreateAccessible(nsINode* aNode)
|
||||||
mNodeToAccessibleMap.Remove(oldAccessible->GetNode());
|
mNodeToAccessibleMap.Remove(oldAccessible->GetNode());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
// Not accessible node may not have container accessible if we recreate
|
||||||
|
// an accessible asynchronously.
|
||||||
|
// XXX: asynchronous RecreateAccessible notifications should be coalesced
|
||||||
|
// with accessible tree mutation notifications. We could trigger
|
||||||
|
// ContentRemoved/ContentInserted pair for that but it moves us away from
|
||||||
|
// the idea to not recreate the whole subtree.
|
||||||
parent = GetAccService()->GetContainerAccessible(aNode, mWeakShell);
|
parent = GetAccService()->GetContainerAccessible(aNode, mWeakShell);
|
||||||
|
if (!parent)
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get new accessible and fire show event.
|
// Get new accessible and fire show event.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче