Bug 1431256 correction: AccessibleHandler: Really return E_NOINTERFACE for IEnumVARIANT if there are no children. r=MarcoZ

A typo meant we were checking the address of mChildCount, not the value.

MozReview-Commit-ID: 7Hit3FBy9pr

--HG--
extra : amend_source : edb85b8e73184e47cd9ff42c0442f89d5f3c5152
This commit is contained in:
James Teh 2018-03-22 17:57:34 -04:00
Родитель 779fe85e35
Коммит ab44d98e0d
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -406,7 +406,7 @@ AccessibleHandler::QueryHandlerInterface(IUnknown* aProxyUnknown, REFIID aIid,
}
if (aIid == IID_IEnumVARIANT && mCachedData.mGeckoBackChannel) {
if (&mCachedData.mDynamicData.mChildCount == 0) {
if (mCachedData.mDynamicData.mChildCount == 0) {
return E_NOINTERFACE;
}
RefPtr<IEnumVARIANT> childEnum(