Skip to content

fix: handle missing NativeWindowMac in ElectronNSWindow #47751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

codebytere
Copy link
Member

Description of Change

Closes #47679.
Refs #44628

Fixes an issue where certain operations performed in a window close callback could trigger a crash. After #44628 it's possible for ElectronNSWindow to outlive shell_ and thus we should check that it's not nullptr prior to use.

Checklist

Release Notes

Notes: Fixed an issue where certain operations performed in a window close callback could trigger a crash.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/36-x-y PR should also be added to the "36-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch. labels Jul 15, 2025
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jul 15, 2025
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes target/36-x-y PR should also be added to the "36-x-y" branch. target/37-x-y PR should also be added to the "37-x-y" branch. target/38-x-y PR should also be added to the "38-x-y" branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Electron crashes on macOS in accessibilityFocusedUIElement
2 participants