Closed
Bug 1429808
Opened 7 years ago
Closed 1 year ago
Text selection change events are no longer emitted for document content
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1446699
People
(Reporter: jdiggs, Unassigned)
Details
Steps to reproduce:
1. Launch Firefox
2. Launch Accerciser and enable event monitoring for object:text-selection-changed events
3. Use the mouse or keyboard to select/highlight text within the location bar
4. Use the mouse or keyboard to select/highlight text within a document
Expected results: For both steps 3 and 4, Accerciser would print out object:text-selection-changed events.
Actual results: Things work as expected for step 3, but no events are being emitted for step 4.
This is a regression, but I'm afraid I don't know when it was introduced. I see it in both Nightly and 57.0.4. Perhaps it's an uncaught regression from the multi-process switch??
Impact: Orca relies heavily upon this event to present text selection changes to the user.
Comment 1•7 years ago
|
||
Sounds like we may need more tests here: https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/textselection
Comment 2•7 years ago
|
||
or rather browser/ (since we should test e10s codepath)
| Reporter | ||
Comment 3•7 years ago
|
||
This works as expected in 52.5.3/"ESR"
Comment 4•7 years ago
|
||
Both main and content process seems end up calling FireTextChangeEvent method: content process [1] and main process [2]. The code path is a standard one and shared with Windows as well [3], which appears working.
So if anyone having a linux build at hands could try to set up breakpoint at MaiAtkObject::FireTextChangeEvent and see if we ever reach there, before I set up my own linux build, then it'd be very helpful.
[1] https://dxr.mozilla.org/mozilla-central/source/accessible/atk/AccessibleWrap.cpp?q=FireTextChangeEvent&redirect_type=direct#1568
[2] https://dxr.mozilla.org/mozilla-central/source/accessible/atk/AccessibleWrap.cpp?q=FireTextChangeEvent&redirect_type=direct#1587
[3] https://dxr.mozilla.org/mozilla-central/source/accessible/ipc/DocAccessibleParent.cpp#335
Comment 5•7 years ago
|
||
I have a 57.0.1 build were I have the issue too. I put a breakpoint on MaiAtkObject::FireTextChangeEvent but didn't got it triggered, neither with the location bar selection nor with the document selection. Typing text in the location bar did trigger it.
| Reporter | ||
Comment 6•7 years ago
|
||
A text-change event should be insertions, deletions, and replacements; not selection changes. (Right?)
Comment 7•7 years ago
|
||
sorry, I totally misread the bug. So here's a problem I think. We fire "selection_changed" instead of "text_selection_changed" [1].
[1] https://dxr.mozilla.org/mozilla-central/source/accessible/atk/AccessibleWrap.cpp#1517
Updated•3 years ago
|
Severity: normal → S3
Comment 8•1 year ago
|
||
(In reply to alexander :surkov (:asurkov) from comment #7)
sorry, I totally misread the bug. So here's a problem I think. We fire
"selection_changed" instead of "text_selection_changed" [1].
We fixed that in bug 1446699, which should have addressed this. If not, please reopen.
You need to log in
before you can comment on or make changes to this bug.
Description
•