It is easy to blame Fireofx OS now for the waste, but 4 years ago it was not that easy to see that it would be a total disaster. It was just things that Mozilla was betting on did not come through.
The real problem for me is why Firefox OS was not stopped 2 years ago when trends became clear. That is inexcusable given the amount of efforts Mozilla continued to spend on it.