Open Bug 1531189 Opened 5 years ago Updated 2 years ago

isFromUserInput is always true on text change events of editable/focused nodes

Categories

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

defect

Tracking

()

People

(Reporter: eeejay, Unassigned)

Details

The AccTextChangeEvent constructor forces isFromUserInput to be true when the node is editable or focusable:

  // XXX We should use IsFromUserInput here, but that isn't always correct
  // when the text change isn't related to content insertion or removal.
  mIsFromUserInput =
      mAccessible->State() & (states::FOCUSED | states::EDITABLE);

This makes things like live regions with editable text tough because the AT needs to know the source of the text change.

(In reply to Eitan Isaacson [:eeejay] from comment #0)

This makes things like live regions with editable text tough because the AT needs to know the source of the text change.

IMO, an editable text marked as (or within) a live region is an authoring error. NVDA has the same issue and I've made the same argument. This doesn't mean we shouldn't work around it, but it also shouldn't be something we block on or make a major priority.

Priority: -- → P3

Yeah, the usecase for an editable node in a live region is arguable. But the heuristics around isFromUserInput are definitely flawed. This isn't a priority right now. Just putting this bug here to remember that..

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.