Bug 583214 Duplicate entries for first Root Window with AT-SPI 2 r=surkov a=blocking2.0

This commit is contained in:
Ginn Chen 2010-08-06 15:03:32 +08:00
parent 3ca43e92c4
commit 8dbcfbaf63

View File

@ -69,6 +69,9 @@ nsAccDocManager::GetDocAccessible(nsIDocument *aDocument)
if (!aDocument)
return nsnull;
// Ensure CacheChildren is called before we query cache.
nsAccessNode::GetApplicationAccessible()->EnsureChildren();
nsDocAccessible *docAcc =
mDocAccessibleCache.GetWeak(static_cast<void*>(aDocument));
if (docAcc)