Mozilla took in the money from the distant past all the way into the present. They have leaned into privacy the whole time, while not being perfect.
At some point they ease off the google money or it goes away itself. And they move forward on privacy.
Google was less demanding in the past as well; they continue to give Apple billions each year.
There are a number of privacy-oriented business models, as listed here: https://aol.codeberg.page/eci/status.html - while not as lucrative as some, combined with an endowment its a good living that many companies would envy.