Similar idea that I had in my mind is to compile Linux to webassembly and run it in the browser. I don't have skills for that, however it seems to me that Linux is more mature than new operating system and webassembly surely could work as yet another architecture for Linux.