Open Bug 2021289 Opened 2 months ago Updated 1 month ago

setTimeout on a removed iframe window throws NS_ERROR_NOT_INITIALIZED, while no-op in Chrome

Categories

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

defect

Tracking

()

People

(Reporter: saschanaz, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug)

User Story

user-impact-score:1000

Run data:text/html,<iframe id="iframe"></iframe><script>var win2 = iframe.contentWindow; iframe.remove(); win2.setTimeout(() => console.log("foo"), 0)</script>

Chrome: Nothing happens, setTimeout is silently ignored
Firefox: Throws NS_ERROR_NOT_INITIALIZED.

User Story: (updated)

vhilla, did we end up changing this recently?

Severity: -- → S3
Flags: needinfo?(vhilla)

This reproduces in a build before bug 543435.

Flags: needinfo?(vhilla)
You need to log in before you can comment on or make changes to this bug.