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 470332 - Can no longer arrow to push buttons in FF3
Can no longer arrow to push buttons in FF3
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.19.x
Other All
: Normal normal
: 2.20.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2007-08-26 02:16 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2008-07-22 19:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
proposed patch (4.04 KB, patch)
2007-08-26 02:19 UTC, Joanmarie Diggs (IRC: joanie)
accepted-commit_now Details | Review
D'oh! Also do the check in updateBraille() (4.91 KB, patch)
2007-08-26 16:24 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review
one more text.characterCount check (784 bytes, patch)
2007-08-28 01:11 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2007-08-26 02:16:47 UTC
Step to reproduce:  

1. Try to move to a push button using the arrow keys.

Expected Results:  Orca would let you arrow to the push button.  Orca would speak lines that contained push buttons.

Actual Results:  Orca skips right over push buttons.

Notes:  This might be a side effect of some other changes to FF3.  I recall at one point there was some discussion about the possibility of all objects implementing text and hypertext because there is the potential for an object to start out devoid of text/hypertext and but to gain it dynamically.  Our problem seems to be that push buttons are implementing text, but have a characterCount of 0.

Patch to follow.
Comment 1 Joanmarie Diggs (IRC: joanie) 2007-08-26 02:19:50 UTC
Created attachment 94342 [details] [review]
proposed patch

Just turned a bunch checks on obj.text to checks on obj.text and obj.text.characterCount.  Seems to solve the problem.  Will please review.
Comment 2 Willie Walker 2007-08-26 11:27:34 UTC
(In reply to comment #1)
> Created an attachment (id=94342) [edit]
> proposed patch
> 
> Just turned a bunch checks on obj.text to checks on obj.text and
> obj.text.characterCount.  Seems to solve the problem.  Will please review.
> 

Looks good.  Thanks!
Comment 3 Marco Zehe 2007-08-26 14:31:40 UTC
I have been running with this patch now, and am noticing that I can now arrow to the buttons, but they do not yet show up in braille. For example, on www.google.com, the Google Search and I'm Feeling Lucky buttons are both spoken, but not brailled.
Comment 4 Joanmarie Diggs (IRC: joanie) 2007-08-26 16:24:35 UTC
Created attachment 94378 [details] [review]
D'oh!  Also do the check in updateBraille()

Sleep, I don't need no stinking sleep.  Then again, apparently I do.... :-)  This version also does the check in updateBraille() and should solve the issue Marco addressed.  Thanks for testing this Marco!  Mind giving this version a spin?
Comment 5 Joanmarie Diggs (IRC: joanie) 2007-08-26 16:58:16 UTC
Given that the new version is merely adds a couple of additional checks for actual characters and also seems to work <grin>, and given that we have a release to roll out, I went ahead and committed the revised version both to trunk and the gnome-2-20 branch.  So, Marco, in order to test it now, you should reverse the original patch and *then* do the svn update. Thanks again!!
Comment 6 Mike Pedersen 2007-08-26 17:59:10 UTC
Looks good.  This also fixes the speaking/brailling of buttons when using form field navigation.
Comment 7 Joanmarie Diggs (IRC: joanie) 2007-08-26 18:25:45 UTC
Great thanks!  Moving to pending.
Comment 8 Joanmarie Diggs (IRC: joanie) 2007-08-27 10:42:13 UTC
Moving this out of pending.  It seems to have a nasty side effect with lists.  Still investigating....
Comment 9 Joanmarie Diggs (IRC: joanie) 2007-08-28 01:11:15 UTC
Created attachment 94471 [details] [review]
one more text.characterCount check

The bad list juju is a Mozilla bug (which we're now tracking via bug #470853).  Among other things, we're getting a bogus characterCount == 0 for lists.  Until the Mozilla bug is fixed, this defensive patch should hopefully do the trick.  I won't be so bold as to jinx us by saying it's just another harmless check.... ;-)
Comment 10 Joanmarie Diggs (IRC: joanie) 2007-08-28 01:49:48 UTC
Okay, patch checked in to both trunk and the gnome-2-20 branch.

Marco, Mike:  Please test.

Will, hackishness aside, anything I'm missing?
Comment 11 Willie Walker 2007-08-28 12:46:51 UTC
Yech to the Mozilla bug, but hooray for you for the defensive maneuver.  My only question was if we'd end up with a non-None text but a None obj.parent.text.  In looking at getUnicodeText, however, this doesn't seem like it would ever be the case.  So, looks cool to me.  Thanks!
Comment 12 Mike Pedersen 2007-08-29 19:59:29 UTC
This seems to work nicely. 
Comment 13 Joanmarie Diggs (IRC: joanie) 2007-08-29 20:35:41 UTC
Thanks!  Closing as FIXED.