electron: v10.0.0: cannot compile wasm when contextIsolation is enabled
Preflight Checklist
- [x ] I have read the Contributing Guidelines for this project.
- [ x] I agree to follow the Code of Conduct that this project adheres to.
- [ x] I have searched the issue tracker for an issue that matches the one I want to file, without success.
Issue Details
- Electron Version:
- 10.0.0
- Operating System:
- macOS 10.14.6
- Last Known Working Electron version:
- 9.2.1
Expected Behavior
Wasm should be allowed to compile when contextIsolation is enabled, as it did in v9.2.1.
Actual Behavior
Wasm compilation fails:
Turning off contextIsolation fixes the problem.
To Reproduce
Screenshots
Additional Information
Note that this error is different from #25066, in which it was clarified that Node is not available to the web page and emscripten when contextIsolation is turned on. In this case, it looks like the browser is not permitting wasm compilation at all.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (12 by maintainers)
Commits related to this issue
- Revert to Electron 9 Breaks Olm based E2EE because Olm uses WASM and https://github.com/electron/electron/issues/25127 — committed to jitsi/jitsi-meet-electron by saghul 4 years ago
- Revert to Electron 9 Breaks Olm based E2EE because Olm uses WASM and https://github.com/electron/electron/issues/25127 — committed to d3473r/jitsi-meet-electron by saghul 4 years ago
@quanglam2807 it hasn’t yet - it needs manual as you can see by the label on the original PR 😃 I do plan to do it when i have time soon tho!
@codebytere Thanks very much for fixing this!
e.g
when
contextIsolation: truewhereas when
contextIsolation: false:Smaller repro: https://gist.github.com/14159e28f5f3951f99aaebc6de9f7b39
Edit: solved, fix up next week!
@codebytere A stand-alone test is attached in hello.zip that instantiates wasm successfully using v9.2.1 but not v10. To run, unzip and:
The output will be found in the debugger console window. For success:
For failure:
Let me know if I can help further …
hello.zip
I have the same problem when loading Figma with Electron 10.x