Closed Bug 2050063 Opened 2 months ago Closed 2 months ago

setTimeout on detached iframes throws "Component not initialized" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)"

Categories

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

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: jrmuizel, Assigned: farre)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug)

User Story

user-impact-score:900

Attachments

(2 files, 1 obsolete file)

Attached file Test case (obsolete) —

See the attached test case.

Salesforce's Lightning Web Security uses detached iframes as a sandbox and having setTimeout throw an exception can break a variety of things.

Blocks: 2047919

Do the timers actually run in other browsers? Or are they no-op?

Flags: needinfo?(jmuizelaar)
Attached file setTimeout.html

Here's a simpler test case showing the problem.

Attachment #9600852 - Attachment is obsolete: true
Flags: needinfo?(jmuizelaar)

(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #1)

Do the timers actually run in other browsers? Or are they no-op?

The timers don't seem to run in other browsers.

Blocks: 1937727, 1957422
User Story: (updated)
Assignee: nobody → afarre
Status: NEW → ASSIGNED
Severity: -- → S3
Pushed by afarre@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4dd354af825c https://hg.mozilla.org/integration/autoland/rev/9a4c69cd20e2 Don't throw when calling setTimeout on detached window. r=dom-core-reviewers,smaug

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/60902 for changes under testing/web-platform/tests

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch

Upstream PR merged by moz-wptsync-bot

No longer blocks: 2047919
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: