| Summary: | Document.write into iframe with CSP sometimes blocks resources loads in inner iframe | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Bierner <matb> | ||||
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | achristensen, bfulgham, cdumez, katherine_cheney, pgriffis, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 15 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | macOS 12 | ||||||
| Attachments: |
|
||||||
|
Description
Matt Bierner
2022-02-14 17:23:43 PST
Over on Chrome, we determined this is likely by-design (although quite confusing): https://bugs.chromium.org/p/chromium/issues/detail?id=1297377 The issue with the polling here is that the iframe document may still be on `about:blank` when the ready state is first checked. This results in the new content written into the document inheriting the parent page's CSP instead of providing its own To fix this, I added a check to our code to make sure we are checking the ready state of the expected page instead of `about:blank` |