All they had to do was keep making a decent browser.
They engaged in what I can only describe as deliberate and systematic sabotage of the brand and any competitive advantages they might have had.
That being said, I'm not sure the outcome could have been averted. Like you said, since Google was the hand that fed them and Google has their own browser, Mozilla could have only slowed down the inevitable, not prevented it.