Skip to content

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

Merged
ckerr merged 2 commits into
40-x-yfrom
trop/40-x-y-bp-fix-handle-createwindow-rejection-in-import-meta-test-fixture-1777902529337
May 5, 2026
Merged

ckerr merged 2 commits into
40-x-yfrom
trop/40-x-y-bp-fix-handle-createwindow-rejection-in-import-meta-test-fixture-1777902529337

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 40-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 4, 2026
@ckerr
ckerr merged commit 32c4761 into 40-x-y May 5, 2026
272 of 277 checks passed
@ckerr
ckerr deleted the trop/40-x-y-bp-fix-handle-createwindow-rejection-in-import-meta-test-fixture-1777902529337 branch May 5, 2026 12:58
@release-clerk

release-clerk Bot commented May 5, 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

40-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.

1 participant