Bug 20872

Summary: Enhancing Navigation to Accessibility parent
Product: WebKit Reporter: Sankar Aditya Tanguturi <sankaraditya+bugzilla>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: jcraig, jhoneycutt, klinktech, roger_fong, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
This patch contains only the changes to enhance the navigation to the accessibility parent. jhoneycutt: review-

Description Sankar Aditya Tanguturi 2008-09-15 20:17:56 PDT
I am working on Accessibility for WebKit. When I load a page in WebKit and invoke inspect32 tool, I could find that navigation to the accessibility parent is not proper. I have logged a bug for enhancing WebKit accessibility heuristics. (Bug 20013). As per Jon's suggestion in that bug, I am logging this bug separately to fix this issue.

I will upload the patch as soon as possible.


~ Thanks.
Comment 1 Sam Weinig 2008-09-15 20:50:43 PDT
What specifically is not proper?
Comment 2 Sankar Aditya Tanguturi 2008-09-16 16:45:34 PDT
Created attachment 23493 [details]
This patch contains only the changes to enhance the navigation to the accessibility parent.

When we load a page in WebKit and invoke Inspect32 tool, "navigation to the parent" may lead to the object that is not exposed in the accessibility tree.
Ideally, "navigation to the parent" must always leads to the parent object that is not ignored and is exposed in the accessibility tree.
Made changes to fix this. Attaching the patch for this. I will attach the test case for this as soon as possible. I have encountered few issues while running webkit tests (https://bugs.webkit.org/show_bug.cgi?id=200870). Once the issue is fixed, I will prepare the test cases and update the bug.

~ Thanks.
Comment 3 Eric Seidel (no email) 2008-09-20 13:41:58 PDT
Comment on attachment 23493 [details]
This patch contains only the changes to enhance the navigation to the accessibility parent.

Jon is the man here...
Comment 4 Jon Honeycutt 2008-09-21 20:58:53 PDT
Comment on attachment 23493 [details]
This patch contains only the changes to enhance the navigation to the accessibility parent.

We prefer early return, so this would be better written as:

if (!parentObj)
    return E_FAIL;
...

The change looks good, just needs a test. r- for missing test.

Thanks for the patch, Sankar!
Comment 5 Sankar Aditya Tanguturi 2009-02-06 10:34:27 PST
Jon,

Thanks for your review comments. I am preparing few test cases for this patch. 
As a part of those test cases, I need to use the functions that let us walk towards the parent of an element in the test case. For this, what are the functions that I can use. I understand that support for accessibilty tests is limited on windows. It would be great, if you can tell me few examples for this. 

~Thanks.
Sankar.

(In reply to comment #4)
> (From update of attachment 23493 [details] [review])
> We prefer early return, so this would be better written as:
> 
> if (!parentObj)
>     return E_FAIL;
> ...
> 
> The change looks good, just needs a test. r- for missing test.
> 
> Thanks for the patch, Sankar!
> 

Comment 6 Sankar Aditya Tanguturi 2009-02-06 10:36:22 PST
I browsed through sample scripts available in LayoutTests directory. I don't find any examples that uses parentElement function. Is that function supported in AccesibilityUIElement class.

Thanks
Sankar.
Comment 7 Sankar Aditya Tanguturi 2009-03-26 11:51:06 PDT
Jon,
Can you provide some inputs for comment #6. Is the support available for parent navigation in Layout tests?

~ Thanks
Sankar.
Comment 8 Jon Honeycutt 2009-03-27 01:39:33 PDT
(In reply to comment #7)
> Jon,
> Can you provide some inputs for comment #6. Is the support available for parent
> navigation in Layout tests?

No, AccessibilityUIElement::parentElement() is not yet implemented on Windows. I'll try to add that soon!
Comment 9 James Craig 2013-09-30 11:35:17 PDT
<rdar://problem/15113186>
Comment 10 Roger Fong 2013-09-30 14:06:55 PDT
AccessibilityUIElement::parentElement() seems to have been implemented some time ago.