Yeah but writing web apps in HTML/CSS/JavaScript is not the same as using C++.
I would prefer the lower layers also to be written in a memory safe systems programming language, but having the userspace 100% in such a language, would already be quite an improvement versus the current situation.
Chrome, that is used on Android and is a large code base, is written mostly in C++, which you would probably not call a memory safe language.