Bug 23610 - Create a new MSAA role for List Item elements.
Summary: Create a new MSAA role for List Item elements.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Sankar Aditya Tanguturi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 20:45 PST by Sankar Aditya Tanguturi
Modified: 2013-09-30 11:50 PDT (History)
5 users (show)

See Also:


Attachments
Patch to populate role attribute for list item elements. (5.52 KB, patch)
2009-01-28 23:26 PST, Sankar Aditya Tanguturi
no flags Details | Formatted Diff | Diff
Patch to populate role attribute for list item elements. (6.65 KB, patch)
2009-02-04 22:58 PST, Sankar Aditya Tanguturi
eric: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sankar Aditya Tanguturi 2009-01-28 20:45:09 PST
When a web page is rendered using WebKit and inspect32 is invoked on windows, MSAA role attribute is not properly set for list item elements.

On Firefox 2.0.0.14, it is properly set to ListItemRole (ROLE_SYSTEM_LISTITEM).


~Thanks
Sankar.
Comment 1 Sankar Aditya Tanguturi 2009-01-28 23:26:51 PST
Created attachment 27139 [details]
Patch to populate role attribute for list item elements.

This is a very simple patch. As jon asked, this patch is uploaded to just
populate the role attribute of list elements appropriately.
Comment 2 chris fleizach 2009-02-01 06:55:25 PST
I am not sure that a list item should have casSetFocus through accessibility. Can a list item be focused on?

You probably also want to map

{ ListItemRole, NSAccessibilityGroupRole } 
in AccessibilityObjectWrapper.mm

so that mac users will not experience any problems immediately

your indentation in your layout test is also incorrect. 

it seems like this layout test will fail on mac because the string "list item" appearing as the role will not be the value returned on the mac. perhaps make this a windows only test.

this is an *official* review, just comments from the mac side of accessibility =)
Comment 3 Sankar Aditya Tanguturi 2009-02-01 15:44:45 PST
@Chris,
Yeah, list item can be focused. You can check it using inspect32 tool on Firefox 2.0.0.14 on windows.

I agree that test case should be placed in windows specific directory. I will make changes to the patch. Other than that, I don't find any issue with the test case. Can you explain me why do you think that intention in the test case is not correct.

Accessibility support on windows for running layout tests is not good. So, I had to focus the body element and walk till the list item element. 


~ Thanks.

(In reply to comment #2)
> I am not sure that a list item should have casSetFocus through accessibility.
> Can a list item be focused on?
> 
> You probably also want to map
> 
> { ListItemRole, NSAccessibilityGroupRole } 
> in AccessibilityObjectWrapper.mm
> 
> so that mac users will not experience any problems immediately
> 
> your indentation in your layout test is also incorrect. 
> 
> it seems like this layout test will fail on mac because the string "list item"
> appearing as the role will not be the value returned on the mac. perhaps make
> this a windows only test.
> 
> this is an *official* review, just comments from the mac side of accessibility
> =)
> 

Comment 4 chris fleizach 2009-02-02 13:58:13 PST
indentation != intention
Comment 5 Sankar Aditya Tanguturi 2009-02-04 22:58:53 PST
Created attachment 27341 [details]
Patch to populate role attribute for list item elements.

Implemented all changes as specified by Chris in his review comments.

~ Thanks.
Comment 6 chris fleizach 2009-02-04 23:06:41 PST
that looks ok to me
Comment 7 Eric Seidel (no email) 2009-03-26 10:47:42 PDT
This sounds like something jhoneycutt needs to review.
Comment 8 Jon Honeycutt 2009-03-26 11:37:15 PDT
Comment on attachment 27341 [details]
Patch to populate role attribute for list item elements.

Looks good to me. Thanks, Sankar!
Comment 9 Eric Seidel (no email) 2009-04-29 15:26:10 PDT
Comment on attachment 27341 [details]
Patch to populate role attribute for list item elements.

I had to fix your ChangeLogs when landing.  There was also a stray tab character in AccessibilityObject.h (which causes the commit to fail).  Otherwise it committed fine.
http://trac.webkit.org/changeset/43020

Please set your REAL_NAME environment variable to your full name (or be sure to clean up the ChangeLogs manually after running prepare-ChangeLog).

Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	LayoutTests/ChangeLog
	A	LayoutTests/platform/win/accessibility/listitem-role-expected.txt
	A	LayoutTests/platform/win/accessibility/listitem-role.html
	M	WebCore/ChangeLog
	M	WebCore/page/AccessibilityObject.h
	M	WebCore/page/AccessibilityRenderObject.cpp
	M	WebCore/page/mac/AccessibilityObjectWrapper.mm
	M	WebKit/win/AccessibleBase.cpp
	M	WebKit/win/ChangeLog
Committed r43020
Comment 10 Sankar Aditya Tanguturi 2009-04-29 15:45:04 PDT
Thanks Eric for committing the patch. It almost 9 months for me to get this patch landed.
Comment 11 Eric Seidel (no email) 2009-04-29 16:29:21 PDT
Rolled out due to failure:

Committing to http://svn.webkit.org/repository/webkit/trunk ...
	D	LayoutTests/platform/win/accessibility/listitem-role-expected.txt
	D	LayoutTests/platform/win/accessibility/listitem-role.html
	M	LayoutTests/ChangeLog
	M	WebCore/ChangeLog
	M	WebCore/page/AccessibilityObject.h
	M	WebCore/page/AccessibilityRenderObject.cpp
	M	WebCore/page/mac/AccessibilityObjectWrapper.mm
	M	WebKit/win/AccessibleBase.cpp
	M	WebKit/win/ChangeLog
Committed r43027
Comment 13 chris fleizach 2009-04-29 16:32:10 PDT
that doesn't look like an important difference, although its a little odd it showed up after this patch
Comment 14 Sankar Aditya Tanguturi 2009-04-30 12:19:46 PDT
(In reply to comment #13)
> that doesn't look like an important difference, although its a little odd it
> showed up after this patch
> 
Can you tell me what I need to do from my side to get this patch landed.
Comment 15 James Craig 2013-04-15 16:31:07 PDT
I think this may be resolved with:
http://trac.webkit.org/changeset/52351
Comment 16 James Craig 2013-09-30 11:50:07 PDT
No response in at least 6 months. Closing