Bug 251592

Summary: REGRESSION (Safari 16.3): Incorrect rendering of nested iframes with document.write
Product: WebKit Reporter: Matthieu Wipliez <matthieu.wipliez>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Critical CC: rniwa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: iOS 16   
See Also: https://bugs.webkit.org/show_bug.cgi?id=251595

Description Matthieu Wipliez 2023-02-02 08:35:25 PST
The issue is that nested iframes with depth > 2 and not rendered correctly on Safari 16.3
This appears to be only broken on Safari 16.3, not previous or next versions (Safari Technology Preview seems unaffected).

Steps to reproduce :
Go to the URL: https://sample.teads.net/demo/bugs/safari-16.3-nested-iframe.html
Scroll down to the red rectangle
Observe that you see "hey there 0" and "hey there 1".

Expected: "hey there 0", "hey there 1", "hey there 2", "hey there 3".
Open the page on a previous version of Safari (16.1) or Safari Technology Preview, or Firefox, or Chrome, and witness the expected behavior.
Comment 1 Radar WebKit Bug Importer 2023-02-06 15:51:20 PST
<rdar://problem/105102959>
Comment 2 Alexey Proskuryakov 2023-02-23 13:24:35 PST
This does appear to be fixed already. You can also try with macOS 13.3 beta, or Safari 16.4 beta to double check.