Per StatCounter, Mozilla's market share decline started in early 2010 (including mobile, late 2010 for desktop only) and Eich was fired (resigned, but that's BS) in early 2014.
Eich was still at Mozilla (not CEO) when Mozilla under-invested in desktop performance, failed to get Firefox OS off the ground, and most likely laid the groundwork to switching to Yahoo.