Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1003115317a556c8f140386d8e2b1409b1761605
      
https://github.com/WebKit/WebKit/commit/1003115317a556c8f140386d8e2b1409b1761605
  Author: Joshua Hoffman <[email protected]>
  Date:   2025-07-02 (Wed, 02 Jul 2025)

  Changed paths:
    A LayoutTests/accessibility/linked-elements-outside-aria-modal-expected.txt
    A LayoutTests/accessibility/linked-elements-outside-aria-modal.html
    M Source/WebCore/accessibility/AccessibilityObject.cpp

  Log Message:
  -----------
  AX: aria-controls and aria-activedescendant targets outside an aria-modal 
shouldn't be ignored
https://bugs.webkit.org/show_bug.cgi?id=295292
rdar://153461447

Reviewed by Tyler Wilcock.

We typically ignore all elements that are not in a modal, when a modal is 
active (see
`ignoredFromModalPresence`). However, there is a common pattern where controls 
inside
modals (e.g., comboboxes) have relationships to elements outside the modal 
(e.g.,
listboxes). We don't want those elements to be ignored, so if that relationship 
exists
don't ignore it.

* LayoutTests/accessibility/linked-elements-outside-aria-modal-expected.txt: 
Added.
* LayoutTests/accessibility/linked-elements-outside-aria-modal.html: Added.
* Source/WebCore/accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::ignoredFromModalPresence const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to