bug 1332690 - work around non existant proxies

This commit is contained in:
Trevor Saunders 2017-02-21 11:18:32 -05:00
Родитель 8b87856c36
Коммит 98b6c0804b
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -411,8 +411,13 @@ DocAccessibleParent::AddChildDoc(DocAccessibleParent* aChildDoc,
// We do not use GetAccessible here because we want to be sure to not get the
// document it self.
ProxyEntry* e = mAccessibles.GetEntry(aParentID);
if (!e)
if (!e) {
#ifdef DEBUG
return IPC_FAIL(this, "binding to nonexistant proxy!");
#else
return IPC_OK();
#endif
}
ProxyAccessible* outerDoc = e->mProxy;
MOZ_ASSERT(outerDoc);