Bug 216815 - Nested iframes not getting focus
Summary: Nested iframes not getting focus
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-09-22 01:17 PDT by Sathis kumar
Modified: 2020-10-05 05:03 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sathis kumar 2020-09-22 01:17:22 PDT
Try to have nested iframes. Say
1. Nested Iframe1 inside Parent
2. Nested Iframe2 inside Iframe1.

Nested Iframe2 has its body contenteditable=true. Now the button click placed in Iframe1 tries to set the focus to Iframe2 body. But focus is not being set.
Once we manually click the body, the above approach starts to work without any issues.

The same instead of iframe, if I have a normal contenteditable div, its working fine.

Note: the above behaviour works fine in all other browsers.

Example : https://jsfiddle.net/5zqsu2v9/43/
Comment 1 Radar WebKit Bug Importer 2020-09-22 15:43:08 PDT
<rdar://problem/69396469>
Comment 2 Sathis kumar 2020-10-05 05:03:01 PDT
Hi team, any update on this please