-
Notifications
You must be signed in to change notification settings - Fork 15k
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]: Electron crashes when loading <iframe> from custom URL protocol #35462
Comments
https://github.com/electron/electron/search?q=iframe+custom+protocol+crash&type=issues |
Yes, this looks pretty much the same. If I register another custom protocol (custom2://) and load the main frame with |
We've seen this same crash in a few other places incl. #28765 - here's the stacktrace: Stacktrace
Ref CRBUG:1081397 |
I think there is a path forward here - what's happening is that Upstream, several possibilities have been floated - I can try to open up a PR here with some changes and potentially upstream them. |
Preflight Checklist
Electron Version
20.1.0
What operating system are you using?
Windows
Operating System Version
Windows 10
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
I want to load an iframe from a custom:// url protocol inside my main window.
<iframe src="custom://test.html">
Actual Behavior
Application crashes when using custom:// url protocol. The protocol is registered with
protocol.registerFileProtocol()
. When loading the exact same file with the file:// protocol, everything is OK.Testcase Gist URL
https://gist.github.com/75a34a8f7177e616146a8e5f1f4edddc
Additional Information
The same issue hase also been observed on Ubuntu 20.04
The text was updated successfully, but these errors were encountered: