Summary: | Accessibility tree should not contain duplicate child nodes. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Guillory <ctguil> | ||||||
Component: | Accessibility | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | cfleizach, webkit.review.bot | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Comment on attachment 90262 [details] Layout Test >Index: LayoutTests/accessibility/duplicate-child-nodes.html >=================================================================== >--- LayoutTests/accessibility/duplicate-child-nodes.html (revision 0) >+++ LayoutTests/accessibility/duplicate-child-nodes.html (revision 0) >@@ -0,0 +1,32 @@ >+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> >+<html> >+<head> >+<link rel="stylesheet" href="../fast/js/resources/js-test-style.css"> >+<script> >+ var successfullyParsed = false; >+</script> >+<script src="../fast/js/resources/js-test-pre.js"></script> >+</head> >+<body> >+ >+<em><code ><h4 ></em> >+ >+<p id="description"></p> >+<div id="console"></div> >+ >+<script> >+ description("Child nodes should not be duplicated in the accessibility tree."); >+ >+ if (window.accessibilityController) { >+ document.body.focus(); >+ var webArea = accessibilityController.focusedElement; >+ if (webArea.childrenCount > 1) >+ shouldBe("webArea.childAtIndex(0).isEqual(webArea.childAtIndex(1))", "false"); >+ } >+ >+ successfullyParsed = true; >+</script> >+ >+<script src="../fast/js/resources/js-test-post.js"></script> >+</body> >+</html> Created attachment 107139 [details]
Patch
Comment on attachment 107139 [details]
Patch
r=me thanks
Comment on attachment 107139 [details] Patch Clearing flags on attachment: 107139 Committed r95018: <http://trac.webkit.org/changeset/95018> All reviewed patches have been landed. Closing bug. |
Created attachment 90262 [details] Layout Test The accessibility tree can incorrectly list the same node as a child more than once. This can lead to undefined behavior.