Unfortunately market share is more about being about to efficiently distribute your product than just the quality of said product.
Mozilla is suffering from not having its own platform - they could have done so by keeping FirefoxOS alive and use the growing success of KaiOS today. Looks like they are not ready to come back because... reasons.