Skip to content

fix: handle createWindow() rejection in import-meta test fixture - #51469

Merged
jkleinsc merged 2 commits into
41-x-yfrom
trop/41-x-y-bp-fix-handle-createwindow-rejection-in-import-meta-test-fixture-1777902528302
May 4, 2026
Merged

jkleinsc merged 2 commits into
41-x-yfrom
trop/41-x-y-bp-fix-handle-createwindow-rejection-in-import-meta-test-fixture-1777902528302

Conversation

@trop

@trop trop Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Backport of #51441

See that PR for details.

Notes: none.

trop Bot and others added 2 commits May 4, 2026 13:48
Remove macOS dock handling boilerplate code from electron-quick-start.
This test fixture is a short-lived process that calls process.exit()
on completion, so we don't need it.

Co-authored-by: Charles Kerr <[email protected]>
The createWindow() promise was fire-and-forget. If loadFile() or
executeJavaScript() rejects transiently, process.exit() was never
called and the process would hang.

Co-authored-by: Charles Kerr <[email protected]>
@trop
trop Bot requested a review from ckerr May 4, 2026 13:49
@trop trop Bot added 41-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 4, 2026

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jkleinsc
jkleinsc merged commit 743f99d into 41-x-y May 4, 2026
73 checks passed
@release-clerk

release-clerk Bot commented May 4, 2026

Copy link
Copy Markdown

No Release Notes

@trop
trop Bot deleted the trop/41-x-y-bp-fix-handle-createwindow-rejection-in-import-meta-test-fixture-1777902528302 branch May 4, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

41-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants