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

NEW
Unassigned

Status

()

7 years ago
6 years ago

People

(Reporter: surkov, Unassigned)

Tracking

(Blocks: 1 bug, {access})

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
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.
You need to log in before you can comment on or make changes to this bug.