Closed Bug 689847 Opened 13 years ago Closed 13 years ago

Expose active state on current item of selectable widgets

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 2 open bugs)

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

This is requirement of ARIA spec - http://www.w3.org/TR/wai-aria-implementation/#keyboard-focus_aria-activedescendant

If ARIA widgets needs that native widgets should follow to be consistent.

IA2 provides IA2_STATE_ACTIVE which is described as:

This state can be used to indicate the current active item in a container, even 
  if the container itself is not currently active. In other words this would indicate
  the item that will get focus if you tab to the container.
Attached patch patch (obsolete) — Splinter Review
besides we follow the spec this state should be useful for virtual cursor implementations when AT navigates the document without focus changing.
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #577231 - Flags: review?(bolterbugz)
Attached patch patch2Splinter Review
actually ARIA part was implemented in bug 403260. Make items of all widgets to expose active state.
Attachment #577231 - Attachment is obsolete: true
Attachment #577231 - Flags: review?(bolterbugz)
Attachment #577236 - Flags: review?
Attachment #577236 - Flags: review? → review?(bolterbugz)
Comment on attachment 577236 [details] [diff] [review]
patch2

Review of attachment 577236 [details] [diff] [review]:
-----------------------------------------------------------------

r=me. nice.

::: accessible/src/base/nsAccessible.cpp
@@ +1548,5 @@
> +    // descendant is the current one that would get focus if the user navigates
> +    // to the container widget.
> +    nsAccessible* widget = ContainerWidget();
> +    if (widget && widget->CurrentItem() == this)
> +      state |= states::ACTIVE;

Very nice change (I forgot about CurrentItem).
Attachment #577236 - Flags: review?(bolterbugz) → review+
https://hg.mozilla.org/mozilla-central/rev/3a3633f1458c
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: