Skip to content

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

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

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

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 42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 4, 2026
@jkleinsc
jkleinsc merged commit 3998b93 into 42-x-y May 4, 2026
228 of 234 checks passed
@jkleinsc
jkleinsc deleted the trop/42-x-y-bp-fix-handle-createwindow-rejection-in-import-meta-test-fixture-1777902526626 branch May 4, 2026 19:29
@release-clerk

release-clerk Bot commented May 4, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-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