I don't know. The integration of Java applets was way smoother than WASM.
Security wise, perhaps a different story, though let's wait until WASM is in wide use with filesystem access and bugs start to appear.