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
Conversation
There was a problem hiding this 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).
Release Notes Persisted
|
I have automatically backported this PR to "16-x-y", please check out #31479 |
I have automatically backported this PR to "15-x-y", please check out #31480 |
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
npm test
passesRelease Notes
Notes: None