r/CRUDology • u/Zardotab • Sep 30 '26
Could Java applets or Flash have been done right?
Many have noticed that "web assembly" (WASM) resembles the concept of Java applets and/or Adobe Flash. Developers usually found applets and Flash less painful than web apps, but these tools had nasty security problems that doomed them. That gets one wondering if a similar arrangement could be coded without so many security problems, giving HTML browsers and the annoying DOM sorely needed competition.
I asked this question in both the web-dev forum and the Java forum. Seems to still be an open question deserving of more R&D.
2
Upvotes
2
u/Standgrounding Sep 30 '26 edited Sep 30 '26
As long as underlying apis like Navigator or WebGPU get more secure, yes. There are ways to directly access memory in wasm (probably using c++ pointers) and even escape sandbox.
There's also shared memory with js (thus xss opportunities) and you can even bypass a content security policy using wasm.