Open Bug 753771 Opened 11 years ago Updated 2 months ago

nsIAccessibleText selection change methods should ignore selections out of range of the text accessible

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

People

(Reporter: surkov, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: access)

nsIAccessibleText setSelectionBounds, addSelection, removeSelection operates on document selection and selection indexes are counting for document selection so if you call these methods on some text accessible within document then these methods can change the selection outside this text accessible.

Example:
<body>text<p>paragraph</text>
so you use document.addSelection to select 'text' and then you do p.removeSelection(0), even there's no selection inside p accessible this call makes to remove the selection from document.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.