AFAIK income from particular Mozilla products isn't earmarked for spending on specifically those products, so buying non-Firefox products can provide income that can be used to fund Firefox development.
That said, I think income from Firefox's default search engine pretty much dwarfs any income that could potentially be gained from donations/buy-to-support.