[webkit-changes] [WebKit/WebKit] 30503b: AX: Caption and figure caption elements are ignored.

AndresGonzalezApple noreply at github.com
Thu Nov 9 11:30:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 30503bbfeadf148d04be29cf79dfa037c98adb7d
      https://github.com/WebKit/WebKit/commit/30503bbfeadf148d04be29cf79dfa037c98adb7d
  Author: Andres Gonzalez <andresg_22 at apple.com>
  Date:   2023-11-09 (Thu, 09 Nov 2023)

  Changed paths:
    M LayoutTests/accessibility/help-text-expected.txt
    M LayoutTests/accessibility/mac/figure-element-expected.txt
    M LayoutTests/accessibility/mac/figure-element.html
    M LayoutTests/accessibility/roles-computedRoleString.html
    M LayoutTests/platform/mac-wk1/accessibility/roles-exposed-expected.txt
    M LayoutTests/platform/mac-wk2/accessibility/roles-exposed-expected.txt
    M LayoutTests/platform/mac/accessibility/roles-computedRoleString-expected.txt
    M Source/WebCore/accessibility/AccessibilityNodeObject.cpp
    M Source/WebCore/accessibility/mac/AccessibilityObjectMac.mm

  Log Message:
  -----------
  AX: Caption and figure caption elements are ignored.
https://bugs.webkit.org/show_bug.cgi?id=264437
<rdar://problem/118139030>

Reviewed by Tyler Wilcock.

<caption> and <figcaption> are ignored causing that AXTitleUIElement can return an ignored object. This is a problem in ITM since ignored objects are not part of the AX tree. This inconsistency in the API was not caught by the figure-element.html test due to a bug in the test itself. This patch rewrites this test, updates several others and fixes the underlying problem

* LayoutTests/accessibility/help-text-expected.txt:
* LayoutTests/accessibility/mac/figure-element-expected.txt:
* LayoutTests/accessibility/mac/figure-element.html:
* LayoutTests/accessibility/roles-computedRoleString.html:
* LayoutTests/platform/mac-wk1/accessibility/roles-exposed-expected.txt:
* LayoutTests/platform/mac-wk2/accessibility/roles-exposed-expected.txt:
* LayoutTests/platform/mac/accessibility/roles-computedRoleString-expected.txt:
* Source/WebCore/accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::determineAccessibilityRoleFromNode const):
* Source/WebCore/accessibility/mac/AccessibilityObjectMac.mm:
(WebCore::AccessibilityObject::accessibilityPlatformIncludesObject const):

Canonical link: https://commits.webkit.org/270467@main




More information about the webkit-changes mailing list