зеркало из https://github.com/mozilla/gecko-dev.git
Bug 630488 - ASSERTION: Document accessible isn't a child of outerdoc accessible in nsOuterDocAccessible::CacheChildren(), r=davidb, a=davidb
This commit is contained in:
Родитель
5310cfe475
Коммит
73776868d0
|
@ -243,16 +243,11 @@ void
|
||||||
nsOuterDocAccessible::CacheChildren()
|
nsOuterDocAccessible::CacheChildren()
|
||||||
{
|
{
|
||||||
// Request document accessible for the content document to make sure it's
|
// Request document accessible for the content document to make sure it's
|
||||||
// created because once it's created it appends itself as a child.
|
// created. It will appended to outerdoc accessible children asynchronously.
|
||||||
nsIDocument *outerDoc = mContent->GetCurrentDoc();
|
nsIDocument* outerDoc = mContent->GetCurrentDoc();
|
||||||
if (!outerDoc)
|
if (outerDoc) {
|
||||||
return;
|
nsIDocument* innerDoc = outerDoc->GetSubDocumentFor(mContent);
|
||||||
|
if (innerDoc)
|
||||||
nsIDocument *innerDoc = outerDoc->GetSubDocumentFor(mContent);
|
GetAccService()->GetDocAccessible(innerDoc);
|
||||||
if (!innerDoc)
|
}
|
||||||
return;
|
|
||||||
|
|
||||||
nsDocAccessible *docAcc = GetAccService()->GetDocAccessible(innerDoc);
|
|
||||||
NS_ASSERTION(docAcc && docAcc->GetParent() == this,
|
|
||||||
"Document accessible isn't a child of outerdoc accessible!");
|
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче