[Webkit-unassigned] [Bug 211934] New: AX: aria-modal="true" autofocuses the first focusable child when inside an iframe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 14 16:53:48 PDT 2020


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

            Bug ID: 211934
           Summary: AX: aria-modal="true" autofocuses the first focusable
                    child when inside an iframe
           Product: WebKit
           Version: Safari 13
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: govett at adobe.com
                CC: webkit-bug-importer at group.apple.com

When rendering a dialog with `aria-modal="true"` inside an iframe, Safari auto focuses the first focusable child of the dialog, even though the dialog itself is focused by JavaScript. No other browsers seem to have this behavior.

Reproduction: https://b3gkn.csb.app - the close button will be auto focused in Safari, after a flash of focus being on the dialog itself.
Opening the iframe page directly does not cause the issue: https://b3gkn.csb.app/iframe.html.

Source code for the reproduction: https://codesandbox.io/s/objective-currying-b3gkn?file=/index.html

I wouldn't expect the browser to auto focus anything with `aria-modal="true"` (AFAIK no other browsers do this), but if it does, it should respect the element that the developer focuses with JavaScript.

-- 
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/20200514/ce298972/attachment-0001.htm>


More information about the webkit-unassigned mailing list