Thanks, I was wondering about Java in the context of desktop Firefox. I think at least the latest Firefox on Android is mostly Kotlin and uses Gecko components which might use some glue Java code.
The one other place I know of (other than android stuff) where java is used is the html parser (tokenizer really), which is written in java and then used to generate a C++ version.
mozilla-central only contains GeckoView (the embedding API for Android) which uses Java for the API itself and Kotlin for all the unit tests.
Being in a different repository, it didn't show up in OP's stats, either.