I'm a Mozilla employee and I was very deeply involved in Firefox OS work.
On the engineering level, Telefonica was very helpful and working with them was actually a good experience. (can't say the same about all partners :().
Hindsight 20/20 is a powerful bias and it's easy now to talk about why FxOS wasn't meant to be.
All I can say, is that we tried our best and designed a pretty usable device in the end - just week ago I launched my Z3 with latest nightly of Firefox OS 3.0 (from April 2016) and damn, it's actually pretty nice and super smooth, and I'm speaking as a user of the Pixel.
I deeply believe that there's room for an open source operating system and that web stack is a good platform to base it on. The legacy of Firefox OS in form of tons of spec work and engine improvements (Firefox memory usage!) makes it much easier to do this now and I hope someone will.