Open Bug 1618470 Opened 4 years ago Updated 2 years ago

iFrame content is empty

Categories

(Core :: DOM: Core & HTML, defect, P3)

75 Branch
defect

Tracking

()

Tracking Status
firefox-esr68 --- affected
firefox73 --- affected
firefox74 --- affected
firefox75 --- affected

People

(Reporter: standus, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: parity-chrome, reproducible)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4070.0 Safari/537.36

Steps to reproduce:

Please test this code in Firefox and Chrome.
https://jsfiddle.net/x9kb4hny/
At Chrome is works as expected and in iFrame is visible text. In FF not.

Actual results:

iFrame is empty.

Expected results:

iFrame not empty

Also <head> is empty. At Chrome is possible to add anything.

Edge works as expected too.

I have reproduced this issue on Windows 10 and Ubuntu 18 with all the last versions of the main channels. The "OK" is not displayed in Firefox browsers, while it is in Chrome.

Status: UNCONFIRMED → NEW
Component: Untriaged → Web Painting
Ever confirmed: true
Product: Firefox → Core

I think this is the about:blank load clobbering the DOM you add dynamically, but ICBW.

Component: Web Painting → DOM: Core & HTML

That's correct. See bug 543435.

Setting a load event listener on the iframe before appending it to the DOM and doing all the modifications from inside that load listener would help for this specific case.

Depends on: sync-about-blank
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.