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 509731 - braille for collapsed html combo boxes is not updating correctly
braille for collapsed html combo boxes is not updating correctly
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: braille
2.21.x
Other All
: Normal normal
: 2.22.0
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2008-01-15 19:50 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2008-07-22 19:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
revision 1 (808 bytes, patch)
2008-01-15 22:50 UTC, Joanmarie Diggs (IRC: joanie)
none Details | Review
revision 2 (1.07 KB, patch)
2008-01-16 01:51 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2008-01-15 19:50:38 UTC
Given an HTML combo box, we speak the selected menu item no matter what.  We braille it correctly if the combo box is expanded.  We are not updating the display if the combo box is collapsed.

As a test, I turned off the performance enhancements and reversed the most recent combo box related checkin.  No impact.  Something else is going on.... :-(
Comment 1 Joanmarie Diggs (IRC: joanie) 2008-01-15 22:50:55 UTC
Created attachment 102946 [details] [review]
revision 1

This seems to be a combination of changes in Firefox and changes resulting from the performance enhancements.  If you use earlier (pre-performance changes) versions of Orca with the current Firefox, the problem is evident.  If you use earlier versions of Firefox with the current Orca, the problem is *not* evident.  So I think they changed something and we changed something and the two changes combined are problematic. <shrugs>

This patch causes our new method for obtaining the contents of the line to be sure to base our extents on the combo box rather than the text in the menu item.

I did some initial brief testing and it seems to solve the problem.  I am going to update our regression tests and test this further.  In the meantime, Mike please test.  Thanks!
Comment 2 Mike Pedersen 2008-01-15 23:41:12 UTC
this seems good.
Comment 3 Joanmarie Diggs (IRC: joanie) 2008-01-16 01:51:36 UTC
Created attachment 102956 [details] [review]
revision 2

Actually, that was a hack. Make that a kludge. ;-)

I took a closer look.  When we get the extents of a menu item in a combo box, the extents we get are the same as the combo box.  The problem is that the menu itself exposes its full size even when it is collapsed.  I don't think it should.  Perhaps this is what changed in FF -- and didn't matter before the performance enhancements because we weren't looking at ancestor's extents trying to figure out where the blessed line begins. <smile>  Anyhoo, this patch looks to see if we're in a menu whose parent is a combo box and if so, gets the extents of the combo box.

Mike, please test this version. Thanks!
Comment 4 Willie Walker 2008-01-16 16:36:36 UTC
This looks like a relatively safe patch, and if it works, hey, that's great.  :-)  Thanks!
Comment 5 Mike Pedersen 2008-01-16 17:56:56 UTC
Works for me.  thanks 
Comment 6 Joanmarie Diggs (IRC: joanie) 2008-01-18 15:30:29 UTC
Pylinted, regression tested, committed.  Moving to pending.
Comment 7 Joanmarie Diggs (IRC: joanie) 2008-01-22 21:25:28 UTC
As decided in team meeting, closing as FIXED.