Skip to content

ci: suppress macOS 'reopen windows' prompt for Electron test bundle - #51494

Merged
jkleinsc merged 1 commit into
41-x-yfrom
trop/41-x-y-bp-ci-suppress-macos-reopen-windows-prompt-for-electron-test-bundle-1777974324246
May 5, 2026
Merged

jkleinsc merged 1 commit into
41-x-yfrom
trop/41-x-y-bp-ci-suppress-macos-reopen-windows-prompt-for-electron-test-bundle-1777974324246

Conversation

@trop

@trop trop Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Backport of #51488

See that PR for details.

Notes: none

Tests spawn child Electron.app instances and kill them with SIGINT (e.g.
startRemoteControlApp). After enough abnormal exits of the same bundle ID,
AppKit shows a modal "...unexpectedly quit while reopening windows. Do you
want to try to reopen its windows again?" alert inside the
open-application AppleEvent handler. That handler runs before
applicationDidFinishLaunching: is posted, so the alert blocks
app.whenReady() forever and the spawned fixture hangs until the job times
out.

Setting ApplePersistenceIgnoreState for com.github.Electron disables the
persistent-UI machinery (including this prompt) for every Electron launch
in the test job, mirroring the existing CrashReporter DialogType
suppression directly above.

Fixes #51462

Co-authored-by: Sam Attard <[email protected]>
@trop
trop Bot requested a review from a team as a code owner May 5, 2026 09:45
@trop
trop Bot requested a review from MarshallOfSound May 5, 2026 09:45
@trop trop Bot added 41-x-y backport This is a backport PR semver/none labels May 5, 2026
@jkleinsc
jkleinsc merged commit 39aa90c into 41-x-y May 5, 2026
75 checks passed
@jkleinsc
jkleinsc deleted the trop/41-x-y-bp-ci-suppress-macos-reopen-windows-prompt-for-electron-test-bundle-1777974324246 branch May 5, 2026 13:45
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants