Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Issue 699083007: Input type button in group role is not exposed correctly on Mac(blink)

Created:
6 years, 1 month ago by shreeramk
Modified:
6 years, 1 month ago
Reviewers:
dmazzoni
CC:
blink-reviews, aboxhall
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Input type button in group role is not exposed correctly on Mac(blink) According to latest editor's draft http://rawgit.com/w3c/aria/master/html-aam/html-aam.html input type button with menu as parent should be exposed as below: If the option's parent has a group role, then maps to AXMenuButton If the option's parent has a menu role, then maps to AXMenuItem AXRole: AXMenuItem AXSubrole: <nil> AXRoleDescription: 'menu item' This patch would return MenuButtonRole, when button is child of GroupRole. BUG=431773

Patch Set 1 #

Patch Set 2 : updating correct condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -6 lines) Patch
M Source/core/accessibility/AXNodeObject.cpp View 1 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/accessibility/AXRenderObject.cpp View 1 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
shreeramk
Please review. Thanks!
6 years, 1 month ago (2014-11-11 03:16:10 UTC) #2
dmazzoni
I don't understand the reasoning behind the spec here. It seems incomplete. Lots of things ...
6 years, 1 month ago (2014-11-11 06:38:27 UTC) #3
shreeramk
On 2014/11/11 06:38:27, dmazzoni wrote: > I don't understand the reasoning behind the spec here. ...
6 years, 1 month ago (2014-11-11 06:57:20 UTC) #4
shreeramk
@Dominic: I was going through code and found this API remapAriaRoleDueToParent() and this code snippet ...
6 years, 1 month ago (2014-11-12 16:18:51 UTC) #5
dmazzoni
6 years, 1 month ago (2014-11-12 18:16:46 UTC) #6
On 2014/11/12 16:18:51, shreeramk wrote:
> @Dominic:
> I was going through code and found this API remapAriaRoleDueToParent() and
this
> code snippet in it.
> 
> // An aria "menuitem" may map to MenuButton or MenuItem depending on its
parent.
>         if (role == MenuItemRole && parentAriaRole == GroupRole)
>             return MenuButtonRole;
> 
> The spec says when aria role "menuitem" is a child of an element with aria
role
> "group" the it would be exposed as AXMenuButton role on MAC.
> 
> And similar spec is for input type button with parent having aria role as
> "group". I think we should follow the same for input type button as well.

I'm going to file a bug asking for clarification, because I still don't
understand the purpose of the spec.

Powered by Google App Engine
This is Rietveld 408576698