Skip to content

Commit

Permalink
bug 1162543 - IDs not mapping to accessibles shouldn't cause ipc call…
Browse files Browse the repository at this point in the history
…s 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.
  • Loading branch information
tbsaunde committed May 7, 2015
1 parent 5734962 commit 4b39b7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions accessible/ipc/DocAccessibleChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ DocAccessibleChild::RecvRelationByType(const uint64_t& aID,
{
Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID);
if (!acc)
return false;
return true;

auto type = static_cast<RelationType>(aType);
Relation rel = acc->RelationByType(type);
Expand Down Expand Up @@ -256,8 +256,8 @@ DocAccessibleChild::RecvRelations(const uint64_t& aID,
nsTArray<RelationTargets>* aRelations)
{
Accessible* acc = mDoc->GetAccessibleByUniqueID((void*)aID);
if (!aID)
return false;
if (!acc)
return true;

#define RELATIONTYPE(gecko, s, a, m, i) AddRelation(acc, RelationType::gecko, aRelations);

Expand Down

0 comments on commit 4b39b7c

Please sign in to comment.