-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Upgrade to Electron 15 #377
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.
Great. Thanks!
I can reproduce
I will appreciate any suggestions on how to tackle this one. |
@krassowski can you rebase your branch so we can get test binaries with changes in #387? |
b0d7c80
to
7c38ec7
Compare
Done |
Thanks @krassowski . I tested on Mac and noticing two issues:
|
just checked the same with #387 and both work fine with those changes. so that makes me think these are failing maybe because of additional security measures in electron 15? |
electron 15 fix navigation and support base64 data with whitespace
@krassowski |
src/main/main.ts
Outdated
@@ -190,10 +190,13 @@ app.on('ready', () => { | |||
}); | |||
|
|||
app.on("web-contents-created", (_event: any, webContents: WebContents) => { | |||
// Prevent navigation | |||
// Prevent navigation to local links |
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.
@krassowski do you have any concerns on these changes? any concerns navigating to external websites?
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.
Yes, I am concerned. Wouldn't this lead to a context leak? Why is this change needed, again?
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.
during my testing, external domain urls were opened in popup windows and that is safe, so I thought we could enable it back. but if you think there are cases that require blocking external urls then I can update it to block. The original motivation for this change was the issue I mentioned in earlier comments: After switching to Classic notebooks and clicking on a notebook opens a blank window
Was it a change in Electron 15 which lead to this? |
yes, atob issue turns out to be caused by Electron 15 upgrade. |
How about krassowski#15 ? |
Disable `nativeWindowOpen` instead of overriding atob
Looks like this one will be easy. Electron 15 blog post: https://www.electronjs.org/blog/electron-15-0
We are getting straight to 15.3.4.
Full changelog for 15.0.0: https://www.electronjs.org/releases/stable?page=3#15.0.0
Stack: