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:
parent
f54fe4e3de
commit
e33485b9bc
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user