Of course, the nuance here is that this was part of a user action, i.e., the user probably wants to search, so they expect data to be sent to Google (although the address bar suggestions are a gray area IMO). However, what hasn't been expected, and the whole purpose of the GDPR, is that Google does store your search history for advertising purposes without user consent.
So, even if it was unavoidable, Firefox has already been selling user data to Google by simply making it the default search engine and getting paid to do it.
BTW, the GDPR is really strict, and I'll know that Firefox actually sells my data (in a way that I don't expect) when I'll see a GDPR interstitial about it for getting my consent. For instance, when you first open Microsoft's Edge in the EU, they inform users that they're going to share their data with the entire advertising industry.