Bug 468497: Inform the accessibility FocusManager when a XUL tree's view changes. r=MarcoZ

Without this, accessibility clients don't get notified about the newly focused item.
For example, this meant that nothing was reported by screen readers when switching tabs in Thunderbird with control+tab.

MozReview-Commit-ID: F7vqvLXzeJR

--HG--
extra : rebase_source : debd649415cdc7417660c5846a923a5cc8edad79
This commit is contained in:
James Teh 2018-07-05 16:33:24 +10:00
parent 33c82e5cba
commit 14367430eb

View File

@ -660,6 +660,10 @@ XULTreeAccessible::TreeViewChanged(nsITreeView* aView)
UnbindCacheEntriesFromDocument(mAccessibleCache);
mTreeView = aView;
Accessible* item = CurrentItem();
if (item) {
FocusMgr()->ActiveItemChanged(item, true);
}
}
////////////////////////////////////////////////////////////////////////////////