Open Bug 2093145 Opened 12 days ago

Removing aria-valuetext results in stale RemoteAccessible cache

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

People

(Reporter: Jamie, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

STR (with NVDA):

  1. Open this test case:
    data:text/html,<div id="slider" role="slider" aria-valuenow="33" aria-valuetext="medium">&nbsp;</div><button onclick="slider.removeAttribute('aria-valuetext');">Remove</button>
  2. Press control+home to read the top line of the document.
    • Observe: NVDA says "slider medium"
  3. Press the Remove button.
  4. Press control+home to read the top line of the document.
    • Expected: NVDA says "slider 33"
    • Actual: NVDA says "slider medium"

LocalAccessible::BundleFieldsForCache doesn't delete CacheKey::TextValue on an update push once aria-valuetext is gone, so RemoteAccessible::Value continues to use that stale entry instead of the numeric value.

There is some work going on in this area of the code in bug 2041789, so it probably makes sense to wait until that lands before trying to fix this.

You need to log in before you can comment on or make changes to this bug.