Backed out changeset 5c2e089e2163 (bug 1332444) for causing bug 1360402 a=backout

MozReview-Commit-ID: 6JCqiMZePxX
This commit is contained in:
Wes Kocher 2017-04-27 17:37:00 -07:00
Родитель 0b57ca9241
Коммит 2c32bb6724
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -1428,8 +1428,11 @@ AccessibleWrap::GetIAccessibleFor(const VARIANT& aVarChild, bool* aIsDefunct)
}
// If the MSAA ID is not a chrome id then we already know that we won't
// find it here and should look remotely instead.
if (XRE_IsParentProcess() && !sIDGen.IsChromeID(varChild.lVal)) {
// find it here and should look remotely instead. This handles the case when
// accessible is part of the chrome process and is part of the xul browser
// window and the child id points in the content documents. Thus we need to
// make sure that it is never called on proxies.
if (XRE_IsParentProcess() && !IsProxy() && !sIDGen.IsChromeID(varChild.lVal)) {
return GetRemoteIAccessibleFor(varChild);
}
MOZ_ASSERT(XRE_IsParentProcess() ||