AX: Treat AXChildrenInNavigationOrder as AXChildren before adding support for aria...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Feb 2019 04:31:33 +0000 (04:31 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Feb 2019 04:31:33 +0000 (04:31 +0000)
commit48651a3fa6cc02bc49bc07c762d5cb12a0c287a0
tree04c3630301ec953c4dedd8c2eaaea2499b60775e
parent2ebbd4594cd16904a0d9145062664c1ff5974266
AX: Treat AXChildrenInNavigationOrder as AXChildren before adding support for aria-flowto
https://bugs.webkit.org/show_bug.cgi?id=194923

Patch by Eric Liang <ericliang@apple.com> on 2019-02-22
Reviewed by Chris Fleizach.

Source/WebCore:

Added AXChildrenInNavigationOrder attribute that returns the same array as from AXChildren. It prevents AppKit from reordering elements from the fallback AXChildren attribute.

Test: accessibility/mac/children-in-navigation-order-returns-children.html

* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:

Added test to check AXChildrenInNavigationOrder returns non-empty array from AXChildren.
* accessibility/mac/children-in-navigation-order-returns-children-expected.txt: Added.
* accessibility/mac/children-in-navigation-order-returns-children.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/mac/children-in-navigation-order-returns-children-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/mac/children-in-navigation-order-returns-children.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm