Closed Bug 752125 Opened 12 years ago Closed 12 years ago

[AccessFu] Switch to a role-based traversal rule

Categories

(Core :: Disability Access APIs, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: eeejay, Assigned: eeejay)

Details

Attachments

(1 file)

For simplicitly, I originally implemented a traversal rule that lands on all leaves and reads their unique lineage. This has ended up being problematic. For example dijit widgets don't have an action assigned to the text leaf at the tip of a widget. TinyMCE's toolbar has empty paragraphs at the tip of its buttons, using aria-labelledby instead. So to be more agnostic as to how a widget is implemented, be it native or aria, we should probably switch over to a role traversal rule. And if needed, have more logic for specific roles in the match function.
Attachment #621232 - Flags: review?(dbolter)
I want to go over some high level stuff with you before review (probably Monday).
Comment on attachment 621232 [details] [diff] [review] Switch to a role-based traversal rule. Review of attachment 621232 [details] [diff] [review]: ----------------------------------------------------------------- ok r=me ::: accessible/src/jsat/VirtualCursorController.jsm @@ +120,5 @@ > > preFilter: Ci.nsIAccessibleTraversalRule.PREFILTER_DEFUNCT | > Ci.nsIAccessibleTraversalRule.PREFILTER_INVISIBLE, > > match: function(aAccessible) { tempting to do let rule=Ci.nsIAccessibleRole and case rule.ROLE_FOO
Attachment #621232 - Flags: review?(dbolter) → review+
Actually we could consider consts like we do in our mochitests.
(In reply to David Bolter [:davidb] from comment #4) > Actually we could consider consts like we do in our mochitests. Yeah, this is a bigger problem in this module, event consts too. Need to open a bug for that.
Assignee: nobody → eitan
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: