Closed
Bug 1772050
Opened 2 years ago
Closed 2 years ago
Don't call Attributes in HandleLiveRegionEvent
Categories
(Core :: Disability Access APIs, 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.
Assignee | ||
Comment 1•2 years ago
|
||
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.
Updated•2 years ago
|
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
Comment 3•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox104:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•