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
Electron v9 upgrade #984
Electron v9 upgrade #984
Conversation
I know this is WIP and doesn’t work yet, but the |
app/renderer/js/utils/link-util.ts
Outdated
@@ -36,7 +36,7 @@ export async function openBrowser(url: URL): Promise<void> { | |||
</body> | |||
</html> | |||
`); | |||
shell.openItem(file); | |||
await shell.openPath(file); |
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.
@manavmehta Can we also utilize the error message in the API design https://github.com/electron/governance/blob/master/wg-api/spec-documents/shell-openitem.md
in case an error occurs ? Just to be safe in this case.
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.
@vsvipul I have added a logger instance for the same. Do you have something else in mind?
Checked the breaking changes |
The breaking part of the Structured Clone Algorithm change is
To see an example of what happens when we try to transmit a non-serializable object, here’s an error we get in the app console at startup:
This leaves much of the app non-functional (e.g. the buttons for add organization, do not disturb, reload, back, settings). |
Heads up @manavmehta, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
Note that the Spectron version is tied to the Electron version, so they need to be upgraded simultaneously. I’ve done a full dependency upgrade in 0f1245b, including Electron 9 and Spectron 11. I’m not sure that writing a log message to a separate log file nobody will read is a helpful way to deal with a failure to launch a web browser, so I’ll leave that for future discussion. |
Sure, I'll keep that in mind for further upgrades. Thanks. |
What's this PR do?
Upgrade to electron v9 (9.1.0)
You have tested this PR on:
Structured Clone Algorithm Checklist (Check if working)