Bug 23725

Summary: Populate role attribute for List elements correctly.
Product: WebKit Reporter: Sankar Aditya Tanguturi <sankaraditya+bugzilla>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: cfleizach, klinktech
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
Patch to expose list elements and populate their role attribute mrowe: review-

Sankar Aditya Tanguturi
Reported 2009-02-03 22:49:31 PST
When a webpage is rendered in webkit, list elements are not exposed and their role attribute is not properly populated. If same webpage is loaded in Firefox 2.0.0.14, we could observer that list elements are exposed in accessibility tree and also their role attribute is populated as "List". A patch has already been approved for this fix in bug 20013. I am logging this bug to track that specific issue separately. I will upload the patch ASAP. ~ Thanks Sankar.
Attachments
Patch to expose list elements and populate their role attribute (5.44 KB, patch)
2009-02-03 23:28 PST, Sankar Aditya Tanguturi
mrowe: review-
Sankar Aditya Tanguturi
Comment 1 2009-02-03 23:28:09 PST
Created attachment 27308 [details] Patch to expose list elements and populate their role attribute This is a very simple patch. This patch just includes the fix to expose list elements in the accessibility tree and populate their role attribute properly to List. ~ Thanks Sankar.
Mark Rowe (bdash)
Comment 2 2009-02-04 01:07:37 PST
Comment on attachment 27308 [details] Patch to expose list elements and populate their role attribute I'm not particularly familiar with this code, but from what I can see we have a AccessibilityList subclass of AccessibilityRenderObject that is used to represent a list. It looks to me that your changes to AccessibilityRenderObject should not be needed given that AccessibilityList already provides this functionality.
chris fleizach
Comment 3 2009-02-04 01:46:06 PST
agreed. it seems all this would be taken care of by AccessibilityList.cpp.
Mark Rowe (bdash)
Comment 4 2009-02-04 02:15:11 PST
Comment on attachment 27308 [details] Patch to expose list elements and populate their role attribute Thanks for the confirmation, Chris. Marking patch as r-.
Sankar Aditya Tanguturi
Comment 5 2009-02-04 09:41:38 PST
Thanks for the review comments. I overlooked AccessibilityList.cpp file. But,atleast, role attribute should be set appropriately as "List". I will modify the patch and upload it again. ~ Thanks Sankar. (In reply to comment #4) > (From update of attachment 27308 [details] [review]) > Thanks for the confirmation, Chris. Marking patch as r-. >
chris fleizach
Comment 6 2009-02-04 10:11:09 PST
in AccessibilityList.h, you'll see virtual AccessibilityRole roleValue() const { return ListRole; } so i guess the question is, why doesn't this work on Windows
Sankar Aditya Tanguturi
Comment 7 2009-02-04 20:27:56 PST
Checked the behavior of webkit without applying my patch. This functionality is already implemented in webkit as specified by Chris. So, closing this bug. ~ Thanks Sankar. (In reply to comment #6) > in AccessibilityList.h, you'll see > > virtual AccessibilityRole roleValue() const { return ListRole; } > > so i guess the question is, why doesn't this work on Windows >
Note You need to log in before you can comment on or make changes to this bug.