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: showing certificate dialog with no window #24091
Conversation
17ee739
to
6d8fd73
Compare
Release Notes Persisted
|
I have automatically backported this PR to "10-x-y", please check out #24118 |
I have automatically backported this PR to "7-3-x", please check out #24119 |
I have automatically backported this PR to "8-x-y", please check out #24120 |
I have automatically backported this PR to "9-x-y", please check out #24121 |
Description of Change
Closes #24066.
Fixes an issue in
dialog.showCertificateTrustDialog
wherewindow
was not explicitly set to null when no optional window was passed. This caused a converter error as theNativeWindow
converter doesn't know how to handleundefined
. It's not possible to add a regression test for this case, unfortunately, as the cert trust dialog blocks the main process.cc @MarshallOfSound @ckerr @jkleinsc
Checklist
npm test
passesRelease Notes
Notes: Fixed an error when calling
dialog.showCertificateTrustDialog
with noBrowserWindow
.