You can see how they roughly spend their revenue here [1]. Although it might be out of date now, it does highlight how expensive browser development really is at that scale.
This does not break down how much money is spent on development of Firefox. I don't have references, but there has been many a discussion about Firefox development being only a small fraction of the whole, and the majority being spent on questionable endeavors (or perhaps I am thinking of Wikipedia?)