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
[Bug]: URL passed into additionalArguments crashes renderer #31168
Comments
Bisected to v14.0.0-beta.3...v14.0.0-beta.5 Stacktrace
@samuelmaddock also looks like this only happens with http(s) urls? Tried with some other arbitrary args (e.g. |
That's the same behavior I observed as well. In my application I've switched to JSON-encoded args to avoid the issue for now. e.g. additionalArguments: [
JSON.stringify({ url: 'https://foo' })
] |
I found that the additionalArguments's item contains ' : ' , the window will crash. The url is just an exception. Like:
My electron version is '18.1.0' Is there any suggestions to fix this issue? Now, I use the temporary method like use |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
I can still reproduce the crash in v21. @samuelmaddock |
**User-Facing Changes** Fixed an issue on Windows where `foxglove://` links would open a blank Foxglove Studio window. **Description** Fixes #4896 It seems like passing arbitrary arguments to the renderer is not safe on windows for some reason. We work around the problem by base64-encoding. See: electron/electron#31168, electron/electron#32064
Preflight Checklist
Electron Version
14.0.1
What operating system are you using?
Windows
Operating System Version
Windows 10 21H1
What arch are you using?
x64
Last Known Working Electron version
13.5.0
Expected Behavior
Passing a URL into
additionalArguments
does not crash renderers.Actual Behavior
Passing a URL into
additionalArguments
does crash renderers.Testcase Gist URL
https://gist.github.com/samuelmaddock/c05879cc1efd83d384001b60eeff3d24
Additional Information
No response
The text was updated successfully, but these errors were encountered: