зеркало из https://github.com/mozilla/gecko-dev.git
Bug 310377. AccessibleObjectFromPoint not working after new page loaded in a tab. r=mkaply, sr=bryner
This commit is contained in:
Родитель
e54a5866ab
Коммит
06fd81dff0
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче