mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
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:
parent
f68c2c3fe4
commit
159bdccb85
@ -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);
|
||||
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user