Closed Bug 1733440 Opened 4 years ago Closed 4 years ago

Account for parent accs with no frame in bounds caching impl

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: morgan, Assigned: morgan)

References

Details

Attachments

(1 file)

Jamie's phab comment describing this below :)

If the parent doesn't have a frame but the grandparent (or some other ancestor) does, I think this will break the coordinates, since we're getting root-relative coordinates here. When we calculate bounds in RemoteAccessible::Bounds, we'll add the root-relative coords here, then keep walking up the ancestry adding more coordinates... but we already had root-relative coordinates!

If we're going to use root-relative coordinates, I think we need to push some flag indicating that RemoteAccessible shouldn't add bounds from the ancestry for this Accessible.

Alternatively, we could find the nearest parent Accessible with a frame and use that here.

As to when this actually matters, display: contents will cause an Accessible to have no frame:

data:text/html,<div>before<ul style="display: contents;"><li style="display: contents;">item

The div will have a frame, the ul and the li won't, but the "item" text will have a frame. So, we'll use root-relative coordinates for the "item" TextLeafAccessible, but end up adding the div coordinates as well.

Assignee: nobody → mreschenberg
Status: NEW → ASSIGNED
Type: defect → task
See Also: → 1736635
Pushed by mreschenberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9ed33cbbaea5 Adjust RemoteAccessibleBase::Bounds for root relative coordinates r=Jamie
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: