Firefox is developed by the Mozilla Corporation, which is owned by the Mozilla Foundation. The corporation can send money to the foundation but not the other way around.
Here’s a really nice thread on Hacker News where they dig into the financial statements from the Mozilla Foundation. Also, here’s a link to Mozilla’s FAQ where it vaguely mentions how Firefox funding works.