And I can't get a consistent answer on what problem WASM is trying to solve.
And I can't get a consistent answer on what problem WASM is trying to solve.
How would allowing DOM access be insecure? The DOM is designed to be completely controlled by the webpage. I don't see how adding an additional way for the webpage to do so adds any insecurity.
It adds more ways to sneak unwanted code into the page or do cross execution that shouldn't happen in first place, while staying inside the sandbox.
It also sort of solves a common problem of running untrusted code, both in browser or on server, because WASM VMs are much more isolated and restricted.
Same thing with WASM. JVM never achieved this level of penetration, and Flash allowed way too much access to ever be secured.
https://leaningtech.com/cheerpj/
https://leaningtech.com/cheerpj-applet-runner/
https://leaningtech.com/cheerpx-for-flash/
And in regards to "security",
https://training.linuxfoundation.org/blog/webassembly-securi...