Bug 310377. AccessibleObjectFromPoint not working after new page loaded in a tab. r=mkaply, sr=bryner

git-svn-id: svn://10.0.0.236/trunk@181540 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net 2005-10-04 03:04:06 +00:00
parent f54fe4e3de
commit e33485b9bc

View File

@ -625,6 +625,13 @@ NS_IMETHODIMP nsDocAccessible::FireDocLoadingEvent(PRBool aIsFinished)
if (aIsFinished) {
// Need to wait until scrollable view is available
AddScrollListener();
nsCOMPtr<nsIAccessible> parent;
GetParent(getter_AddRefs(parent));
nsCOMPtr<nsPIAccessible> privateAccessible(do_QueryInterface(parent));
if (privateAccessible) {
// Make the parent forget about the old document as a child
privateAccessible->InvalidateChildren();
}
}
return NS_OK;