Bug 216815

Summary: Nested iframes not getting focus
Product: WebKit Reporter: Sathis kumar <r.sathishari>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, graouts, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Unspecified   
OS: Unspecified   

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