Bug 129306

Summary: Updating `iframe@srcdoc` through DOM/JavaScript doesn’t work reliably
Product: WebKit Reporter: Mathias Bynens <mathias>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: data:text/html,<iframe%20id=x%20srcdoc="<body%20bgcolor=red>FAIL"></iframe><script>x.srcdoc%20=%20'<body%20bgcolor=green>PASS';</script>

Description Mathias Bynens 2014-02-25 06:27:30 PST
Test case:

data:text/html,<iframe%20id=x%20srcdoc="<body%20bgcolor=red>FAIL"></iframe><script>x.srcdoc%20=%20'<body%20bgcolor=green>PASS';</script>

Expected results:

The test case should show an iframe with a green background.

Actual results:

The test case shows an iframe with a red background.

Safari has the same issue. Firefox gets it right.
Comment 1 Ahmad Saleem 2023-11-11 13:00:08 PST
Safari 17.2 seems to get this right (Green Background with PASS), similar to Chrome Canary 121 and Firefox Nightly 121.

Marking this as 'RESOLVED CONFIGURATION CHANGED'.