[Webkit-unassigned] [Bug 236585] New: Safari moves focus to first focusable element inside an element with role="dialog" and aria-modal="true" when added to the DOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 14 03:51:58 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=236585

            Bug ID: 236585
           Summary: Safari moves focus to first focusable element inside
                    an element with role="dialog" and aria-modal="true"
                    when added to the DOM
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: matthew.garrath.thomas at gmail.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

Created attachment 451883

  --> https://bugs.webkit.org/attachment.cgi?id=451883&action=review

Test Case

All Platforms - iOS (15.3) and MacOS 

Adding an element with the attributes role="dialog" and aria-modal="true" containing focusable elements causes the first of these elements to receive focus. This is not the behaviour of Firefox or Chrome, and causes compatibility issues. 

Related bugs (possibly over-specific): https://bugs.webkit.org/show_bug.cgi?id=211934

See the test case. Reproduce by clicking the button to add the element with role="dialog" and aria-modal to the DOM. See the button inside the element receive focus.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220214/76f098f2/attachment.htm>


More information about the webkit-unassigned mailing list