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: remove NOTREACHED() from GetWindowResizeEdge #31470

Merged
merged 1 commit into from Oct 19, 2021
Merged

Conversation

mlaurencin
Copy link
Contributor

@mlaurencin mlaurencin commented Oct 19, 2021

Description of Change

Previously in a test build on Windows, when a window was maximized and restored by moving it to the top edge of the window and subsequently pulling it away, the default case of the switch statement in GetWindowResizeEdge would get hit. This would result in a debug check returning false and crashing the program.

By removing this NOTREACHED() call, the test build program does not crash.

@deermichel

Checklist

Release Notes

Notes: None

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Oct 19, 2021
Copy link
Contributor

@deermichel deermichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth to mention that this change is transparent to the users because NOTREACHED() does not trigger a crash in release builds (and the return value - be it correct or not 😄 - stays the same).

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/15-x-y labels Oct 19, 2021
@ckerr ckerr merged commit a2d993c into main Oct 19, 2021
@ckerr ckerr deleted the debug-resize-crash-fix branch October 19, 2021 16:19
@release-clerk
Copy link

release-clerk bot commented Oct 19, 2021

Release Notes Persisted

None

@trop
Copy link
Contributor

trop bot commented Oct 19, 2021

I have automatically backported this PR to "16-x-y", please check out #31479

@trop
Copy link
Contributor

trop bot commented Oct 19, 2021

I have automatically backported this PR to "15-x-y", please check out #31480

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Oct 21, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 27, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 27, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
t57ser pushed a commit to t57ser/electron that referenced this pull request Oct 29, 2021
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants