Closed Bug 1772050 Opened 2 years ago Closed 2 years ago

Don't call Attributes in HandleLiveRegionEvent

Categories

(Core :: Disability Access APIs, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

HandleLiveRegionEvent currently calls Attributes to determine whether something is a live region. This is potentially needlessly expensive because it will calculate group attributes, which might even involve building a CachedTableAccessible. We should instead use nsAccUtils::SetLiveContainerAttributes, which will just deal with the live region attributes.

Depends on: 1757121

Attributes() might do computation that we'll just throw away; e.g. building a CachedTableAccessible.
In a content process, cached data structures like this will never get used by a client, so building them will always be wasteful.
Instead, use nsAccUtils::SetLiveContainerAttributes, which only computes live region stuff.

Assignee: nobody → jteh
Status: NEW → ASSIGNED
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c9acc4829d49 Don't call Attributes() in Android's HandleLiveRegionEvent. r=eeejay
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Regressions: 1779975
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: