Bug 129306 - Updating `iframe@srcdoc` through DOM/JavaScript doesn’t work reliably
Summary: Updating `iframe@srcdoc` through DOM/JavaScript doesn’t work reliably
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: data:text/html,<iframe%20id=x%20srcdo...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 06:27 PST by Mathias Bynens
Modified: 2023-11-11 13:00 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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'.