mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
fcd5e0b236
commit
d3707d095b
@ -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…
Reference in New Issue
Block a user