That's not true. Majority of the front end is in html+js+css these days. Most of it is /browser and /toolkit directories.
The rest is Gecko engine and it's written in a mix of Rust, C++ and JS. We're moving more to Rust with the back end but staying with JS on the front end.
You can develop almost any feature of Firefox without ever leaving JS.