After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 412100 - Text selection is not announced in Firefox
Text selection is not announced in Firefox
Status: RESOLVED OBSOLETE
Product: orca
Classification: Applications
Component: general
unspecified
Other All
: High major
: FUTURE
Assigned To: Orca Maintainers
Orca Maintainers
post-3.0
: 547499 721149 (view as bug list)
Depends on: 549529
Blocks: 404403
 
 
Reported: 2007-02-26 01:20 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2016-06-04 16:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Joanmarie Diggs (IRC: joanie) 2007-02-26 01:20:08 UTC
When Orca is controlling the caret, pressing Shift plus the arrow keys does not cause text to be selected.  The current work-around seems to be to allow Gecko to control the caret by pressing Orca Modifier + F12, select the text, and return control to Orca when finished.

Note that when using this work-around, Orca doesn't speak selected text as it does in other environments.  However, it does correctly announce the new location of the caret.
Comment 1 Willie Walker 2007-02-26 01:32:11 UTC
This is definitely a problem, and is more encouragement for users to try to persuade the Firefox team into providing reliable caret navigation.  There are a couple bugs in Firefox for this:

Caret navigation metabug:

  https://bugzilla.mozilla.org/show_bug.cgi?id=241023

Structural navigation bug:

  https://bugzilla.mozilla.org/show_bug.cgi?id=321632
Comment 2 Joanmarie Diggs (IRC: joanie) 2007-02-26 01:40:19 UTC
> This is definitely a problem, and is more encouragement for users to try to
> persuade the Firefox team into providing reliable caret navigation. 

Agreed!!

Is this something we can try to handle on our end or is this really something that is blocked until the Firefox team improves things on their end?
Comment 3 Willie Walker 2007-02-26 01:48:25 UTC
Selection from our end via the AT-SPI is going to be somewhat of a hairball since it easily crosses over object boundaries and becomes more complex to express, let alone make happen.
Comment 4 Joanmarie Diggs (IRC: joanie) 2007-02-27 23:10:49 UTC
Sorry to quote myself, but w.r.t. this:

> Note that when using this work-around, Orca doesn't speak selected text as it
> does in other environments.  However, it does correctly announce the new
> location of the caret.

I was thinking that we could at least make the user experience better by announcing what text was selected/unselected *if Gecko were controlling the caret*.  Unfortunately, we can't even do that because getNSelections() always returns 0.  See https://bugzilla.mozilla.org/show_bug.cgi?id=369389.
Comment 5 Joanmarie Diggs (IRC: joanie) 2007-04-20 19:25:58 UTC
https://bugzilla.mozilla.org/show_bug.cgi?id=369389 has been closed as FIXED and we are now getting valid values from getNSelections().  Now it's just a matter of handling selection depending on who is controlling the caret. :-)
Comment 6 Willie Walker 2007-05-25 15:22:47 UTC
> When Orca is controlling the caret, pressing Shift plus the arrow keys does not
> cause text to be selected.  The current work-around seems to be to allow Gecko
> to control the caret by pressing Orca Modifier + F12, select the text, and
> return control to Orca when finished.

If Orca were to provide this functionality, I'm curious if FF supports the selection of text via the AT-SPI (i.e., can Orca programmatically cause text to be selected in Firefox?). 
Comment 7 Joanmarie Diggs (IRC: joanie) 2007-07-07 23:06:59 UTC
I started looking at this.  We're not always getting valid starting offsets from getSelection().  See: https://bugzilla.mozilla.org/show_bug.cgi?id=387273

I can hack around it, but if they fix it on the Firefox side of things there shouldn't be a need to make a Gecko.py-specific isTextSelected() or speakTextSelectionState()
Comment 8 Joanmarie Diggs (IRC: joanie) 2007-07-07 23:20:22 UTC
> I'm curious if FF supports the selection of text via the AT-SPI
> (i.e., can Orca programmatically cause text to be selected 
> in Firefox?). 

Seems that we can: text.setSelection() works.
Comment 9 Joanmarie Diggs (IRC: joanie) 2007-08-02 04:20:18 UTC
I'm changing the summary to reflect that we are blocked.  Life will be much better when we're not getting bogus starting offsets....
Comment 10 Joanmarie Diggs (IRC: joanie) 2007-09-20 18:54:26 UTC
Officially we are unblocked on this one.  After I get more of the regression testing done I'll work on it. :-)
Comment 11 Joanmarie Diggs (IRC: joanie) 2008-01-21 22:22:04 UTC
Trying to balance optimism with realism, I'm nudging the target back slightly.  I still would like to get this in the 2.22 release, but we have to get the line nav stuff worked out.
Comment 12 Peter Vágner 2008-03-10 11:03:34 UTC
These simptoms can also be seen in thunderbird 3. The same applies to the message window while reading messages as well as to the composition window.
Comment 13 Willie Walker 2008-03-11 14:06:26 UTC
First coarse pass at GNOME 2.24 planning.
Comment 14 Joanmarie Diggs (IRC: joanie) 2008-08-13 01:51:14 UTC
*** Bug 547499 has been marked as a duplicate of this bug. ***
Comment 15 Hammer Attila 2008-12-14 11:33:53 UTC
Working this function your openion with 2.26 release with Orca?
I seeing the svn trunk release with following simptoms in FF3 and Thunderbird:
The selection is happened, but the selected text is not spokened. I looking this with GNOME 2.22 and Orca svn trunk version.
I looking this with GNOME 2.24 in monday.

Attila
Comment 16 Joanmarie Diggs (IRC: joanie) 2009-01-20 22:52:49 UTC
I'm afraid it's looking like we might not get to this in time for the release. :-( Hopefully the one after that.
Comment 17 Joanmarie Diggs (IRC: joanie) 2009-02-27 23:38:15 UTC
In terms of the 2.26 release, we won't have perfect selection support, but I might be able to get some rudimentary support implemented to make selecting from with large blocks of text work. It's at least a start. Retargeting and planning to do the best I can in the days that follow. :-)
Comment 18 Willie Walker 2009-08-14 15:43:33 UTC
We are late in the 2.28 release cycle and I want to focus on "high impact"/"low risk" items that also fall within the release team's restrictions in place.  Regretfully, this bug doesn't fit well within those constraints and we'll review it for the 2.29 release cycle.
Comment 19 Joanmarie Diggs (IRC: joanie) 2010-07-04 18:29:21 UTC
This really needs doing. It's also really likely to be a pain in the arse to put it bluntly given Geckoisms, Gecko's broken caret navigation, etc. Volunteers welcome.
Comment 20 Steve Holmes 2010-07-23 20:40:32 UTC
Point of clarification: with Firefox 4.0 Beta, I just tried the suggested strategy of switching to Gecko navigation while selecting text.  All I could get was the word "selected" spoken with eath press of the shifted or ctrl-shifted arrow keys.  Pressing the WhereAmI key just yields silence.  It wouldn't be so bad if at least that key could speak what text is currently selected.
Comment 21 Steve Holmes 2010-09-21 01:46:50 UTC
I see that this bug has been around for some time and is of high importance; I'm in full agreement with that.  I also want to be able to hear selected text from gecko.  I'm willing to take a stab at it.  I'm giessing the bulk of the activity may be hounding the Mozilla devs to get their buts moving on this.  Also, I would need to work the text selection along with Accerciser to see if/what events are exposing when selecting text.  I see it as a learning experience as well as an exercise in patitioning other developers to improve application compatibility.  I will probably need some help on this based on what I've read so far.
Comment 22 Joanmarie Diggs (IRC: joanie) 2013-12-28 18:32:03 UTC
*** Bug 721149 has been marked as a duplicate of this bug. ***