bug 1162543 - IDs not mapping to accessibles shouldn't cause ipc calls to fail r=davidb

This is expected to happen when a accessible in the child process is shutdown,
     but the parent calls a method with its ID before learning it has been shut
     down.
This commit is contained in:
Trevor Saunders 2015-05-07 10:26:01 -04:00
parent fcd5e0b236
commit d3707d095b

View File

@ -224,7 +224,7 @@ DocAccessibleChild::RecvRelationByType(const uint64_t& aID,
{ {
Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID); Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID);
if (!acc) if (!acc)
return false; return true;
auto type = static_cast<RelationType>(aType); auto type = static_cast<RelationType>(aType);
Relation rel = acc->RelationByType(type); Relation rel = acc->RelationByType(type);
@ -256,8 +256,8 @@ DocAccessibleChild::RecvRelations(const uint64_t& aID,
nsTArray<RelationTargets>* aRelations) nsTArray<RelationTargets>* aRelations)
{ {
Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID); Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID);
if (!aID) if (!acc)
return false; return true;
#define RELATIONTYPE(gecko, s, a, m, i) AddRelation(acc, RelationType::gecko, aRelations); #define RELATIONTYPE(gecko, s, a, m, i) AddRelation(acc, RelationType::gecko, aRelations);