AX: Nodes are reporting that focus can be set when they really can't
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2011 01:08:55 +0000 (01:08 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Dec 2011 01:08:55 +0000 (01:08 +0000)
commitaac5dd286786086f0498b61308340ed0b9666a4c
tree96c030f58e562e1b2d7d600aa94ebfb23298a14a
parentca81a18839cf44b20182a35672b96eba13b8411e
AX: Nodes are reporting that focus can be set when they really can't
https://bugs.webkit.org/show_bug.cgi?id=72791

Reviewed by Beth Dakin.

Source/WebCore:

Whether focus can be set on a node shouldn't rely only on the role.
It should depend on whether the node supports focus.

Test: platform/mac/accessibility/supports-focus-setting.html

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::canSetFocusAttribute):

Tools:

* DumpRenderTree/mac/AccessibilityUIElementMac.mm:
(AccessibilityUIElement::isFocusable):
* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
* WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
(WTR::AccessibilityUIElement::isFocusable):

LayoutTests:

* platform/mac/accessibility/supports-focus-setting-expected.txt: Added.
* platform/mac/accessibility/supports-focus-setting.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@101573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/accessibility/supports-focus-setting-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/accessibility/supports-focus-setting.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityRenderObject.cpp
Tools/ChangeLog
Tools/DumpRenderTree/mac/AccessibilityUIElementMac.mm
Tools/WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl
Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm