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 480264 - [verified] ARIA sliders not outputting Braille/ childCount:embed defense
[verified] ARIA sliders not outputting Braille/ childCount:embed defense
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: braille
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Scott Haeger
Orca Maintainers
Depends on:
Blocks: 423348
 
 
Reported: 2007-09-25 15:27 UTC by Scott Haeger
Modified: 2007-10-30 16:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
first version of ARIA sliders not outputting Braille (3.18 KB, patch)
2007-09-25 19:17 UTC, Scott Haeger
none Details | Review
second version of ARIA sliders not outputting Braille/ childCount:embed defense (19.89 KB, patch)
2007-09-26 15:42 UTC, Scott Haeger
none Details | Review
third version of ARIA sliders not outputting Braille/ childCount:embed defense (3.80 KB, patch)
2007-09-26 15:47 UTC, Scott Haeger
none Details | Review
fourth version of ARIA sliders not outputting Braille/ childCount:embed defense (3.47 KB, patch)
2007-09-26 20:34 UTC, Scott Haeger
accepted-commit_now Details | Review
updated patch for ARIA sliders not outputting Braille (4.02 KB, patch)
2007-10-09 20:03 UTC, Scott Haeger
accepted-commit_now Details | Review

Description Scott Haeger 2007-09-25 15:27:36 UTC
ARIA sliders and progressbars are not outputting Braille.  This may be due to this Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=397485 because contents in updateBraille() as returned by getLineContentsAtOffset() is empty.

Another strange observation is that the slider does not always have focus.  Sometimes the focus is on other components that make up the slider such as a span or xml-roles:button.
Comment 1 Scott Haeger 2007-09-25 19:10:17 UTC
Will,

Several defensive maneuvers were put in place for using child() with a childCount=0.  Several were already in place in other uses throughout the code.  I doubt I got them all and several were a little tricky so please inspect the patch carefully.



Mike,

Would you please inspect the Braille output for the following sliders:

http://www.mozilla.org/access/dhtml/pretty-slider.htm
http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_Slider.html
Comment 2 Scott Haeger 2007-09-25 19:17:47 UTC
Created attachment 96190 [details] [review]
first version of ARIA sliders not outputting Braille
Comment 3 Scott Haeger 2007-09-26 15:42:27 UTC
Created attachment 96234 [details] [review]
second version of ARIA sliders not outputting Braille/ childCount:embed defense

Changes that came about from our IRC session.
Comment 4 Scott Haeger 2007-09-26 15:47:32 UTC
Created attachment 96235 [details] [review]
third version of ARIA sliders not outputting Braille/ childCount:embed defense

this patch contains only relevant diffs.  Ignore the second version.
Comment 5 Scott Haeger 2007-09-26 20:34:48 UTC
Created attachment 96259 [details] [review]
fourth version of ARIA sliders not outputting Braille/ childCount:embed defense

Additional change included doing a recursive call in findFirstCaretContext() instead of a simple return.  This will help overcome situations where there are consecutive bad EOCs.
Comment 6 Willie Walker 2007-09-27 14:52:05 UTC
(In reply to comment #5)
> Created an attachment (id=96259) [edit]
> fourth version of ARIA sliders not outputting Braille/ childCount:embed defense
> 
> Additional change included doing a recursive call in findFirstCaretContext()
> instead of a simple return.  This will help overcome situations where there are
> consecutive bad EOCs.

This is looking very good.  Thanks!  Everyone, please give this a test against trunk before Scott commits it.
Comment 7 Mike Pedersen 2007-10-07 01:03:36 UTC
I think this is now good. 
Comment 8 Willie Walker 2007-10-09 18:56:34 UTC
Should this be considered for GNOME 2.20.1?  Or, is the defense stuff being done here isolated to just ARIA stuff, which is planned for support in GNOME 2.22?
Comment 9 Scott Haeger 2007-10-09 20:03:52 UTC
Created attachment 96957 [details] [review]
updated patch for ARIA sliders not outputting Braille

Joanie,
Here is an updated patch for trunk.  I suspect you wanted one for gnome-2-20.  If this is the case I believe we should hold off on this one until 2.22.
Comment 10 Joanmarie Diggs (IRC: joanie) 2007-10-11 00:58:40 UTC
Thanks for the updated patch Scott!    I don't see any difference in terms of regular ol' HTML content, so it seems safe to me.
Comment 11 Willie Walker 2007-10-11 14:36:19 UTC
Thanks everyone!  Scott, please commit to trunk.  The question I have now is if we'd also like to see this for Orca v2.20.1.  I know I've asked before, but it's good to get a written record of why we made the decision.  I think the decision was that we decided not to do this for gnome-2-20 because the broken hierarchy really only seems to exist for ARIA widgets and ARIA support is only targetted for GNOME 2.22.  Right?
Comment 12 Scott Haeger 2007-10-11 14:44:40 UTC
Yes, you are correct in that I am only seeing this problem for ARIA widgets.  This is why I feel it is best to wait.
Comment 13 Scott Haeger 2007-10-11 14:52:32 UTC
committed to truck.
Comment 14 Mike Pedersen 2007-10-12 15:36:08 UTC
This one seems good to me.
Comment 15 Scott Haeger 2007-10-30 16:33:15 UTC
Still seems good post migration.  Marked as fixed.