Open Bug 1471608 Opened 2 years ago Updated 2 years ago

An iframe embedded within an iframe never fires the load event

Categories

(Core :: DOM: Events, defect, P3)

61 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: sjom106, Unassigned)

Details

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

Steps to reproduce:

- Navigate to https://jsfiddle.net/SamMiller/5j912wop/ which contains some javascript that inserts an iframe into the DOM, followed by inserting another iframe into the iframe's DOM.
- Run the jsfiddle


Actual results:

An alert is displayed saying "iframe" which is triggered when the first iframe's load event fires. Howeer, the second alert for the iframe within the iframe never displays. This indicates that the load event for the iframe within the iframe isn't firing.

I've tested this in 61.0, 62.0b3, and 63.0a1 and the second iframe never fires its load event.


Expected results:

An alert should display saying "iframe" followed by another alert saying "iframeInner" which indicates the load event of the iframe within the iframe has fired.

Chrome, Edge, and Safari all correctly fire both iframe load events (I haven't tested in IE11 because jsfiddle doesn't support IE11).
Component: Untriaged → DOM: Events
Product: Firefox → Core
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.