3 ms·
> I think this also had implications on using wasm in electon It should not. Electron runtime is not a browser and developer can tweak its security settings.
by codedokode 7y ago
> I think this also had implications on using wasm in electon
It should not. Electron runtime is not a browser and developer can tweak its security settings.
I would suggest another idea for local files: grant access to folder whose name matches HTML file name, with suffix. For example: file some-page.html and directory some-page_files.
- est31 7y ago> It should not. Electron runtime is not a browser and developer can tweak its security settings. Yes, that's what I meant. Sure you can override chromium, but you have to. https://github.com/adamvoss/electron-webassembly-hello/commit/0c62e5b69f65fd6ba0dabd4bf9dc4b9c9bfc6dfb https://github.com/adamvoss/electron-webassembly-hello/commi... > I would suggest another idea for local files: grant access to folder whose name matches HTML file name, with suffix. That would certainly help. It would restrict some multi-html-file projects a bit though that use shared resources. Probably can be helped by having a folder named html-fetchable-files or something.