Closed Bug 1671049 Opened 4 years ago Closed 4 years ago

Optimize AXSubrole

Categories

(Core :: Disability Access APIs, defect, P1)

All
macOS
defect

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

(Whiteboard: [mac2020_2])

Attachments

(2 files)

The Gecko Profiler shows moxSubrole as potential hot path. I assume this is because it is called often on every kind of accessible. Since aria roles are typically constant through the life of accessibles (with the exception of role=application on body), it should easy to cache the aria role in the mozAccessible.

Priority: P2 → P1

Besides the ARIA role invalidation, this fixes an issue where the mozAccessible's role is also incorrect when the aria role changes on a body tag.

Depends on D93439

Pushed by eisaacson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f68496da1fa8 Cache proxy ARIA role in mozAccessible. r=morgan https://hg.mozilla.org/integration/autoland/rev/fcc450a1b8c3 Invalidate cached ARIA role and role in mozAccessible when role changes. r=morgan
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Regressions: 1675292
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: