Skip to content
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

fix: prevent crash when keyboard event immediately precedes calling BrowserWindow.close() #27358

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Jan 19, 2021

Backport of #27315

See that PR for details.

Notes: Fixed crash when a keyboard event immediately precedes calling browserWindow.close() on Windows.

Activating a key to close a window will cause a silent crash. Handling the keyboard
event will lead to a nullptr dereferenced in Chromium code if the window widget has
already been destroyed.
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 19, 2021
@trop trop bot added 10-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jan 19, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 19, 2021
@zcbenz zcbenz merged commit ae1f1f2 into 10-x-y Jan 19, 2021
@release-clerk
Copy link

release-clerk bot commented Jan 19, 2021

Release Notes Persisted

Fixed crash when a keyboard event immediately precedes calling browserWindow.close() on Windows.

@zcbenz zcbenz deleted the trop/10-x-y-bp-fix-prevent-crash-when-keyboard-event-immediately-precedes-calling-browserwindow-close--1611023895913 branch January 19, 2021 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10-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.

None yet

3 participants