IA2_EVENT_TEXT_SELECTION_CHANGED event produces incorrect results when several text objects are selected

RESOLVED FIXED in mozilla27

Status

()

Core
Disability Access APIs
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: Jost Eckhardt, Ai Squared, Assigned: surkov)

Tracking

(Blocks: 1 bug)

13 Branch
mozilla27
x86_64
Windows 7
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0
Build ID: 20120531155942

Steps to reproduce:

select several text objects


Actual results:

The problem is that Firefox reports that only one(first) text object is selected while we have several selected objects on the screen. I`m not sure if we can reproduce it with the AccProbe.


Expected results:

Multiple selected objects should be reported
(Assignee)

Comment 1

5 years ago
(In reply to Jost Eckhardt, Ai Squared from comment #0)
> Steps to reproduce:
> 
> select several text objects

do you mean single selection like
<p>text |<a>anchor</a><img>|</p> 
or multiple selections through the document like
|<p>this is selected paragraph</p>|
<p> this is not selected</p>
|<p> this one is selected again</p>|
where | | denotes start and end of the selection

Updated

5 years ago
Component: Untriaged → Event Handling
Product: Firefox → Core
QA Contact: untriaged → events
(Assignee)

Updated

5 years ago
Component: Event Handling → Disability Access APIs
QA Contact: events → accessibility-apis
(Assignee)

Updated

5 years ago
Blocks: 640591
(Reporter)

Comment 2

5 years ago
Single selection of multiple objects

|<p>selected paragraph 1</p>
<p>selected paragraph 2</p>
<p>selected paragraph 3</p>| 

IA2 will return only selected paragraph 1
(Assignee)

Comment 3

5 years ago
what accessible do you get the selection from?
Alexander,

we process IA2_EVENT_TEXT_SELECTION_CHANGED events in the following way:
1)Use AccessibleObjectFromEvent function to get an accessible object associated with the event (on the WinEventProc side);
2)Query accessible object for IAccessibleText interface (through IAccessible2 interface);
3)Get selection information using IAccessibleText::nSelections and IAccessibleText::selection.
(Assignee)

Comment 5

5 years ago
Got it, thanks.
(Assignee)

Updated

4 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Assignee)

Comment 6

4 years ago
ашчув ин игп 928504
Assignee: nobody → surkov.alexander
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
(Assignee)

Updated

4 years ago
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.