[Bug]: Crash on Windows when calling win.setTitleBarOverlay
on a window that has titleBarStyle != 'hidden'
#34137
Closed
3 tasks done
Preflight Checklist
Electron Version
18.2.0
What operating system are you using?
Windows
Operating System Version
Windows 10 version 20H2, build 19042
What arch are you using?
x64
Last Known Working Electron version
18.1.0
Expected Behavior
When
win.setTitleBarOverlay
is called, apparently the only valid option fortitleBarStyle
is'hidden'
. So whenwin
was created withtitleBarStyle
different from'hidden'
, Electron should throw an error.Actual Behavior
Electron crashes unexpectedly.
Testcase Gist URL
https://gist.github.com/wheezard/207499979a7fda8cc7d874fdb87886fc
Additional Information
This might work on older versions, but I haven't tested it in them.
The text was updated successfully, but these errors were encountered: