Bug 271469 - [iOS Safari] Tabbing through fields within iFrames via prev/next/done bar doesn't work
Summary: [iOS Safari] Tabbing through fields within iFrames via prev/next/done bar doe...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-22 08:39 PDT by Louis Van Craen
Modified: 2024-04-08 10:09 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Van Craen 2024-03-22 08:39:52 PDT
When there are multiple iFrames (with differing origin), each containing a unique input field, Safari fails to allow tabbing through the input fields.

This behaviour is broken on both mobile safari (v17.4) and desktop safari (v17.4).

iOS Safari - Current behaviour:
  - Using the prev/next arrows on the software keyboard doesn't change the focus from the current input element

iOS Safari - Expected behaviour:
  - Using the prev/next arrows on the software keyboard focuses the prev/next input element

Desktop Safari - Current behaviour:
  - Using the tab key focuses the iFrame element -- a second tab stroke is needed to focus the input element within the iFrame

Desktop Safari - Expected behaviour:
  - Using the tab key focuses the prev/next input element

The current behaviour can be reproduced using the following:
  - Example: https://mfqzp9.csb.app/
  - Code source: https://codesandbox.io/p/sandbox/iframe-forked-mfqzp9?file=%2Fsrc%2Findex.js
Comment 1 Radar WebKit Bug Importer 2024-03-29 08:40:13 PDT
<rdar://problem/125613616>
Comment 2 Ahmad Saleem 2024-04-08 06:44:46 PDT
@Louis - was this used to work with Safari earlier versions?
Comment 3 Louis Van Craen 2024-04-08 10:09:05 PDT
@Ahmad Saleem, I checked on both mobile and desktop, but I was only able to find a version on desktop that worked last. And that would be desktop safari (v12.1).