“Off topic, but I'm not sure why Firefox has lost so much ground to Chrome in recent years."
They spent a long time where every. damn. release. was another, "oh look! We've faffed around with the UI yet again for no apparent reason while completely ignoring the bugs & problems which have been with firefox forever". Just incidentally, every UI change was to make Firefox look more and more like Chrome. And quite a few people took the not unreasonable view that if they're going to use a browser which tries to be like Chrome, they might as well use Chrome.
Mozilla spent time and energy screwing around with a phone OS which was never going anywhere.
They found the time and energy to change the Mozilla logo. Did you care what their logo looks like? Did anyone?
The one time which they acted with any kind of decisiveness is when they got rid of Brenden Eich - they got rid of a guy with unquestionable technical competence to satisfy their political preferences. This was the final evidence, if any was needed, that making a good browser which people want to use is not something the people at Mozilla are interested in.
And I say this as a Firefox supporter. :/