Closed Bug 1946645 Opened 8 months ago Closed 4 months ago

Remove HyperTextAccessible::SelectionCount and SelectionBoundsAt

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

HyperTextAccessibleBase has unified implementations, so there shouldn't be a need to specialise for LocalAccessible. However, accessible/tests/mochitest/textselection/test_general.html fails, so there must be some differences between the implementations. We should either:

  1. Determine that this is a bug in the HyperTextAccessibleBase implementation and fix it; or
  2. Fix the test.
Blocks: 1972539, 1973154

These are implemented in HyperTextAccessibleBase.
Having local and remote use the same implementation makes things simpler, more consistent, easier to test and easier to reason about.
This is also necessary in order to properly test the fix in the next patch.

This breaks the rare edge case of selecting only empty containers for LocalAccessible.
This never worked for RemoteAccessible anyway, which is the majority of content now.
Bug 1973154 has been filed for this.

Assignee: nobody → jteh
Status: NEW → ASSIGNED
Attachment #9495918 - Attachment description: Bug 1972539 part 1: Remove HyperTextAccessible::SelectionCount and SelectionBoundsAt. → Bug 1946645: Remove HyperTextAccessible::SelectionCount and SelectionBoundsAt.

(In reply to James Teh [:Jamie] from comment #0)

  1. Determine that this is a bug in the HyperTextAccessibleBase implementation and fix it; or

See bug 1973154. Strictly speaking, it's a bug in the Base implementation, but it's rare and I don't think it should block this, especially given that we need it to test bug 1972539.

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: