Google introduced NaCl to solve this problem. The naclwebplugin acted as an internal browser architecture that:
: Pronounced "pinnacle," this version compiled code into an architecture-independent intermediate representation ( .pexe ) based on LLVM bitcode. The browser itself translated this file into machine code on the fly. The Sandbox Security Architecture naclwebplugin