forked from mirrors/gecko-dev
Bug 1863466: Support details and error message relations for RemoteAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D192916
This commit is contained in:
parent
30a7dccd55
commit
74e2c544fe
3 changed files with 9 additions and 1 deletions
|
|
@ -82,6 +82,10 @@ static constexpr RelationData kRelationTypeAtoms[] = {
|
|||
RelationType::DESCRIPTION_FOR},
|
||||
{nsGkAtoms::aria_flowto, nullptr, RelationType::FLOWS_TO,
|
||||
RelationType::FLOWS_FROM},
|
||||
{nsGkAtoms::aria_details, nullptr, RelationType::DETAILS,
|
||||
RelationType::DETAILS_FOR},
|
||||
{nsGkAtoms::aria_errormessage, nullptr, RelationType::ERRORMSG,
|
||||
RelationType::ERRORMSG_FOR},
|
||||
};
|
||||
|
||||
// The count of numbers needed to serialize an nsRect. This is used when
|
||||
|
|
|
|||
|
|
@ -1497,7 +1497,9 @@ void LocalAccessible::DOMAttributeChanged(int32_t aNameSpaceID,
|
|||
}
|
||||
|
||||
if (aAttribute == nsGkAtoms::aria_controls ||
|
||||
aAttribute == nsGkAtoms::aria_flowto) {
|
||||
aAttribute == nsGkAtoms::aria_flowto ||
|
||||
aAttribute == nsGkAtoms::aria_details ||
|
||||
aAttribute == nsGkAtoms::aria_errormessage) {
|
||||
mDoc->QueueCacheUpdate(this, CacheDomain::Relations);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ const attrRelationsSpec = [
|
|||
["aria-describedby", RELATION_DESCRIBED_BY, RELATION_DESCRIPTION_FOR],
|
||||
["aria-controls", RELATION_CONTROLLER_FOR, RELATION_CONTROLLED_BY],
|
||||
["aria-flowto", RELATION_FLOWS_TO, RELATION_FLOWS_FROM],
|
||||
["aria-details", RELATION_DETAILS, RELATION_DETAILS_FOR],
|
||||
["aria-errormessage", RELATION_ERRORMSG, RELATION_ERRORMSG_FOR],
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue