Bug 1408638: Ensure accessible isn't defunct in Windows RootAccessibleWrap::accNavigate. r=MarcoZ

Bug 1407475 added support for accNavigate(NAVRELATION_EMBEDS) for e10s.
However, it's possible for a client to call this on the root accessible for a window which was since closed.
Therefore, we must check whether the root accessible is defunct before trying to retrieve the tab document.

MozReview-Commit-ID: 9iR6Kvzu5Mb

--HG--
extra : rebase_source : 82afdecf915cd09cc3eaed948587b87d8ac4173b
This commit is contained in:
James Teh 2017-10-16 11:22:47 +10:00
Родитель e1c9f1505d
Коммит 6622cf5d24
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -124,6 +124,9 @@ RootAccessibleWrap::accNavigate(
if (!pvarEndUpAt) {
return E_INVALIDARG;
}
if (IsDefunct()) {
return CO_E_OBJNOTCONNECTED;
}
Accessible* target = nullptr;
// Get the document in the active tab.