In December 2015, Mozilla announced that its ambitious new operating system would not be appearing on any new phones, but the project may still live on as a platform for smart TVs and IoT devices.
The mobile device space is dominated by two platforms: Apple's iOS and Google's Android. Is there space for another platform? If you asked Mozilla a year ago, the answer would have been an emphatic yes. Inspired by Chrome OS, Mozilla imagined a platform where apps were essentially Web sites. That dream became a reality in Firefox OS.
The idea isn't new. Cordova is an open-source project that uses Web technologies to build cross-platform apps. The same code base can be deployed to Android devices, iPhones and even Windows PCs. The main difference is that Firefox OS offers native support for HTML5 Web apps. This makes the development and deployment process simpler, and it provides a rich device API for developers to use.
There's no doubt that Firefox OS's lightweight Web-centric design makes it an appealing platform for developers. The browser-based stack makes it easy to develop new applications rapidly, reusing code from existing projects and third-party libraries.
But, pleasing developers is only one part of the puzzle. To succeed in the competitive mobile platform space, Mozilla would need to convince handset manufacturers to support its product. It also would need to demonstrate that the new platform offered benefits that aren't available in Android. And, Mozilla would need to convince users as well.
Although HTML5 app development is possible on Android and iOS, most developers use the native frameworks instead. Those frameworks are more complex and less portable than HTML5. So, why is the native framework the preferred choice? The main reason is performance. The native frameworks offer greater performance by hooking into low-level libraries. These libraries are optimized for performance on mobile hardware, offering a fast and responsive user experience.
The root of the problem is the browser itself. Web browsers are built to accommodate a wide range of different types of content and layouts. That flexibility comes at a cost. In the case of Web browsers, that cost comes in the form of the DOM.
The DOM is the "Document Object Model", a data structure that represents the structure of the page. The DOM is expensive--it's memory-heavy. Rendering the DOM (turning it into an image) is computationally expensive as well. Web applications work by manipulating the DOM. Each small change requires a number of recalculations and layout changes. Each of those changes chews up processor power, so HTML5 apps seem less responsive because their runtime engine has to work harder to process changes to the display.
In the end, it's this performance bottleneck that keeps HTML5 from replacing native frameworks. Developers rely on the native frameworks instead.
On Firefox OS, there is no other framework. HTML5 apps are the only option. As a result, even simple Firefox apps struggle to match the performance of apps on Android devices.
Selling Firefox OS to mobile handset manufacturers has been a slow and painful process, and Mozilla is calling it a day, but it isn't quite giving up on its baby yet.
Firefox OS has demonstrated that it's a very flexible platform. It has the potential to run on a wide range of devices, such as TVs and IoT gadgets. As long as Mozilla can find some persuasive use cases for manufacturers, it has a good chance of making an impact in these emerging fields.
- The Tiny Internet Project, Part I
- Machine Learning with Python
- Free Today: September Issue of Linux Journal (Retail value: $5.99)
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- Bitcoin on Amazon! Sort of...
- Epiq Solutions' Sidekiq M.2
- Securing the Programmer
- Android Browser Security--What You Haven't Been Told
- The Many Paths to a Solution
Pick up any e-commerce web or mobile app today, and you’ll be holding a mashup of interconnected applications and services from a variety of different providers. For instance, when you connect to Amazon’s e-commerce app, cookies, tags and pixels that are monitored by solutions like Exact Target, BazaarVoice, Bing, Shopzilla, Liveramp and Google Tag Manager track every action you take. You’re presented with special offers and coupons based on your viewing and buying patterns. If you find something you want for your birthday, a third party manages your wish list, which you can share through multiple social- media outlets or email to a friend. When you select something to buy, you find yourself presented with similar items as kind suggestions. And when you finally check out, you’re offered the ability to pay with promo codes, gifts cards, PayPal or a variety of credit cards.Get the Guide