Mozilla Corporation gets paid by Google to offer Google as a search engine to Firefox users. There's no sponsorship relationship — it's a mutual exchange of value.
See the corporation's audited financial statements:
https://static.mozilla.com/moco/en-US/pdf/Mozilla_Audited_Fi...