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

This commit is contained in:
aaronleventhal%moonset.net 2005-10-04 03:04:06 +00:00
Родитель e54a5866ab
Коммит 06fd81dff0
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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;