i worked for mozilla, your donations pretty much do not go to coding firefox. there are side effects where it will affect code, or someone that gets employed by foundation that will now have money and free time to code for firefox for free, but its not like "your dollars go to hiring a sw engineer".
the donations are still useful though because if there were none mozilla foundation would die, and in turn, mozilla corporation would also die or be sold as its fully owned by the foundation
the donations are still useful though because if there were none mozilla foundation would die, and in turn, mozilla corporation would also die or be sold as its fully owned by the foundation