Firefox OS was doomed to fail. They created an operating system which used the slowest rendering and JS engine there was and put it in the worst hardware they could find.
That's the reason Firefox OS was dead in the water. Telcos in Europe promised there would be a version of whatsapp for Firefox OS which never materialised. A mobile without whatsapp might as well be a brick.