It's not 'one day', the majority of Mozilla's funding has always come from 'search royalties'. Wikipedia says initial funding first came from AOL in 2003, then they had a deal with Google from 2004-2014. In 2014, it says they signed a deal with Yahoo. This is nothing new.
https://en.m.wikipedia.org/wiki/Mozilla_Foundation#Financing