Improved handling of Firefox OS