Skip to content
  • cfleizach@apple.com's avatar
    AX: elements with explicit tabindex should expose AXFocused as writable, since... · 2a0b24cf
    cfleizach@apple.com authored
    AX: elements with explicit tabindex should expose AXFocused as writable, since mouse clicks can focus it
    https://bugs.webkit.org/show_bug.cgi?id=121335
    
    Reviewed by Mario Sanchez Prada.
    
    Source/WebCore:
    
    Re-order logic that determines if a <span> should appear as an accessible element.
    The change is that if an element canSetFocus() it should always be in the AX tree.
    
    Test: accessibility/tabindex-elements-are-accessible.html
    
    * accessibility/AccessibilityRenderObject.cpp:
    (WebCore::AccessibilityRenderObject::computeAccessibilityIsIgnored):
    (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
    
    LayoutTests:
    
    * accessibility/tabindex-elements-are-accessible-expected.txt: Added.
    * accessibility/tabindex-elements-are-accessible.html: Added.
          New test to ensure that if tabindex is on an element, it is in the AX tree.
    * platform/mac/accessibility/table-with-row-col-of-headers-expected.txt:
    * platform/mac/accessibility/table-with-row-col-of-headers.html:
          Update to reflect that if an ignored...
    2a0b24cf