[webkit-changes] [WebKit/WebKit] da3976: AX: Content within iframes with ARIA roles is not ...

Tyler Wilcock noreply at github.com
Tue Aug 1 22:37:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: da3976833b2d6525d802fcf78ede94d5fb74b37f
      https://github.com/WebKit/WebKit/commit/da3976833b2d6525d802fcf78ede94d5fb74b37f
  Author: Tyler Wilcock <tyler_w at apple.com>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    A LayoutTests/accessibility/iframe-with-role-expected.txt
    A LayoutTests/accessibility/iframe-with-role.html
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/ios/TestExpectations
    A LayoutTests/platform/ios/accessibility/iframe-with-role-expected.txt
    A LayoutTests/platform/mac-wk1/accessibility/iframe-with-role-expected.txt
    M Source/WebCore/accessibility/AccessibilityRenderObject.cpp

  Log Message:
  -----------
  AX: Content within iframes with ARIA roles is not accessible
https://bugs.webkit.org/show_bug.cgi?id=259719
rdar://104611075

Reviewed by Chris Fleizach.

This happened because `AccessibilityRenderObject::isAttachment` returned
false for `RenderWidget`s associated with objects that have ARIA roles,
which then caused `AccessibilityRenderObject::addAttachmentChildren()` to
return early without inserting any of the iframe's content.

This behavior (isAttachment returning false for things with an ARIA role)
was added 15 years ago in commit:

https://github.com/WebKit/WebKit/commit/ca5f21d630582a3f99fa65a6c882ec552ec10756

There is no test for this behavior, and I can't discern why it's
necessary. So this patch removes it, in turn fixing the bug.

* LayoutTests/accessibility/iframe-with-role-expected.txt: Added.
* LayoutTests/accessibility/iframe-with-role.html: Added.
* LayoutTests/platform/glib/TestExpectations: Skip new test.
* LayoutTests/platform/ios/TestExpectations: Enable new test.
* LayoutTests/platform/ios/accessibility/iframe-with-role-expected.txt: Added.
* LayoutTests/platform/mac-wk1/accessibility/iframe-with-role-expected.txt: Added.
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::isAttachment const):

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




More information about the webkit-changes mailing list