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

Issue 815523002: Ignore text elements for menu item related roles.

Created:
6 years ago by k.czech
Modified:
5 years, 11 months ago
Reviewers:
dmazzoni
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Ignore text elements for menu item related roles. Text elements should go along with menu item related roles. Let's consider this example: <div role="menuitemcheckbox" tabindex="0">menu item checkbox</div> Currently MenuItemCheckBoxRole is represented by accessible object and its title is the second accessible object. Expected behavior is that we should have just one accessible object. BUG=442278

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -3 lines) Patch
A LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles.html View 1 chunk +30 lines, -0 lines 0 comments Download
A LayoutTests/accessibility/ignore-text-elements-for-menu-item-related-roles-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/modules/accessibility/AXRenderObject.cpp View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
k.czech
6 years ago (2014-12-17 16:04:54 UTC) #2
k.czech
On 2014/12/17 16:04:54, k.czech wrote: This is second attempt to land this patch. Previously win ...
6 years ago (2014-12-17 16:07:27 UTC) #3
shreeramk
On 2014/12/17 16:07:27, k.czech wrote: > On 2014/12/17 16:04:54, k.czech wrote: > > This is ...
6 years ago (2014-12-17 17:41:02 UTC) #4
k.czech
On 2014/12/17 17:41:02, shreeramk wrote: > On 2014/12/17 16:07:27, k.czech wrote: > > On 2014/12/17 ...
6 years ago (2014-12-18 15:19:04 UTC) #5
k.czech
Hi Dominic any chance to get review ?. I already disabled AX tests that were ...
5 years, 11 months ago (2014-12-29 15:50:15 UTC) #6
dmazzoni
Thanks for your patience - I'm back from vacation and catching up on reviews. Can ...
5 years, 11 months ago (2015-01-05 09:10:06 UTC) #7
k.czech
On 2015/01/05 09:10:06, dmazzoni wrote: > Thanks for your patience - I'm back from vacation ...
5 years, 11 months ago (2015-01-07 10:43:53 UTC) #8
k.czech
5 years, 11 months ago (2015-01-07 11:03:26 UTC) #9
On 2015/01/07 10:43:53, k.czech wrote:
> On 2015/01/05 09:10:06, dmazzoni wrote:
> > Thanks for your patience - I'm back from vacation and catching up on
reviews.
> > 
> > Can you explain why you'd like to make this change?
> > 
> > Just about everywhere else when an ARIA object has inner text, we expose the
> > accessible object for the inner text too. I'm not sure why we'd want menu
> items
> > to be any different.
> > 
> > One argument against the change you're proposing is that it adds a bunch of
> > checks to an already slow function. If anything I'm trying to figure out
ways
> to
> > get rid of a lot of logic in computeAccessibilityIsIgnored so that it runs
> > quickly, even if that means slightly more nodes in the AX tree.
> > 
> > Is there a specific user-facing bug that motivated this change? If so, we
> should
> > investigate other ways to address it.
> ad
> Hi Dominic
> 
> Basically I was following the existing code. Static text beneath menu items
are
> already ignored.
> I'm just adjusting code for other menu related items (chekboxes and radios).
> Other reason was to get rid of the additional objects from AX tree.

You are right there are quite a bit of ifs behind the
computeAccessibilityIsIgnored and it might slow down in certain situations.
Basically I was also going to propose the same logic for anchors where the text
could be reported along with those elements.

Powered by Google App Engine
This is Rietveld 408576698