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: showing certificate dialog with no window #24091

Merged
merged 1 commit into from Jun 13, 2020

Conversation

codebytere
Copy link
Member

Description of Change

Closes #24066.

Fixes an issue in dialog.showCertificateTrustDialog where window was not explicitly set to null when no optional window was passed. This caused a converter error as the NativeWindow converter doesn't know how to handle undefined. 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

Release Notes

Notes: Fixed an error when calling dialog.showCertificateTrustDialog with no BrowserWindow.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 12, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 13, 2020
@codebytere codebytere merged commit b9ac334 into master Jun 13, 2020
@release-clerk
Copy link

release-clerk bot commented Jun 13, 2020

Release Notes Persisted

Fixed an error when calling dialog.showCertificateTrustDialog with no BrowserWindow.

@trop
Copy link
Contributor

trop bot commented Jun 13, 2020

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

@trop trop bot removed the target/10-x-y label Jun 13, 2020
@trop
Copy link
Contributor

trop bot commented Jun 13, 2020

I have automatically backported this PR to "7-3-x", please check out #24119

@trop
Copy link
Contributor

trop bot commented Jun 13, 2020

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

@trop
Copy link
Contributor

trop bot commented Jun 13, 2020

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

@trop trop bot removed the target/8-x-y label Jun 13, 2020
sentialx pushed a commit to sentialx/electron that referenced this pull request Jul 30, 2020
sentialx pushed a commit to sentialx/electron that referenced this pull request Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

call showCertificateTrustDialog got on error
2 participants