Mozilla Building Mobile Operating System to Rival Google's Chrome OS

 
 
By Darryl K. Taft  |  Posted 2011-07-26
 
 
 

Mozilla Building Mobile Operating System to Rival Google's Chrome OS


Mozilla has begun work on a new Web-based mobile operating system that will rival the efforts Google has taken with its Chrome OS, except the Mozilla operating system will target smartphones and tablets as opposed to netbooks.

The new Mozilla project is known as Boot to Gecko, or B2G, and its goal is to build a complete, stand-alone operating system for the open Web, said Mozilla engineer Andreas Gal in a July 25 blog post. Gecko is Mozilla's browser layout engine. It appears that Mozilla will begin building out B2G with Android components and Gecko as foundational technologies.

However, as the team is pledging to work in a totally open-source environment, it is enlisting help and suggestions from developers in the community. And the B2G effort will require work in several areas, including building new APIs for exposing device and OS capabilities to contend in areas such as telephony, SMS, camera, USB, Bluetooth, Near Field Communications (NFC) and so on. Developers must also choose and port or build apps to prove out and prioritize the power of the system, prototype a low-level substrate for an Android-compatible device, and establish a privilege model to ensure that these new capabilities are safely exposed to pages and applications.

Gal said Mozilla needs to take "a hill," or win an early battle, as leverage to fight on with the B2G project, which will likely take years to complete. Google took at least two years to bring Chrome OS to fruition.

Essentially, Mozilla's goal is to "find the gaps that keep Web developers from being able to build apps that are-in every way-the equals of native apps built for the iPhone, Android and WP7 [Windows Phone 7]," Gal said.

"Mozilla believes that the Web can displace proprietary, single-vendor stacks for application development," Gal said. "To make open Web technologies a better basis for future applications on mobile and desktop alike, we need to keep pushing the envelope of the Web to include-and in places exceed-the capabilities of the competing stacks in question."

In true open-source tradition, Mozilla plans to release the B2G source code in real time and to take all successful additions to appropriate standards groups, Gal said. "We aren't trying to have these native-grade apps just run on Firefox; we're trying to have them run on the Web," he added.

The B2G post drew an extensive comments thread, many of which came from Mozilla engineers responding to queries and further explaining the project.

However, one commenter, identified as Nick Dafo, asked, Why build a new operating system in the first place? Dafo wrote:

"As a huge Android supporter I don't see why you find the need to do this. Android is already a great mobile O.S. that is open source. ... If Mozilla wants to support open source and the web in mobile devices you should better work as much as possible on the Android version of Firefox instead of trying to create a whole new OS. There is no need for another OS if you can build a great Firefox app for an existing open source O.S. that is already out on the market and growing faster than the closed systems like Apple's and Microsoft's."

Gal responded:

"Android is not open source in the sense of -open technology.' Android APIs are proprietary Google sauce, not broadly accepted and adopted open web standards. At some point Android used to be at least -available source' where Google would publish secretly/internally developed source code/technology after the fact as products ship, but even those times seem to be over now. I would love to boot my custom Android build on my Galaxy Tab 10, but no luck, Google refuses to release the source.

"We want to do Boot to Gecko the way we think open source should be done. In the open, from day 1, for everyone to see and participate."

Responding to queries about potential desktop targeting, Mozilla's Mike Shaver said: "We might prototype some stuff on a PC, but the project is really about the device space. We had to pick somewhere, and this seems like where the energy is best spent. Desktop devices tend to be harder to get good open drivers for without pulling in things like X, which we don't want to do."

Mozilla Building Mobile Operating System to Rival Google's Chrome OS


title=Android Components as Foundation for B2G?} 

And discussing the use of Android components as a foundation for B2G, Shaver said, "We intend to use as little of Android as possible, in fact. Really, we want to use the kernel + drivers, plus libc and ancillary stuff. It's not likely that we'll use the Android Java-wrapped graphics APIs, for example. It's nice to start from something that's known to boot and have access to all the devices we want to expose." Shaver noted that this may not be the right direction and asks for suggestions.

The discussion prompted several queries about APIs. Regarding the APIs and privilege model, Brendan Eich, a Mozilla engineer and creator of JavaScript, said:

"Those New Web APIs are for the standardized, portable content languages (JS/HTML/CSS). We are not looking to run native code, especially given the requirements for a new plug-in API, complex toolchain, etc. We're following NaCl, including the PNaCl work, but it is not ready for prime time, and we'd have to spend a lot of people and time integrating and tracking it. The opportunity cost on pushing the open web standard is very high, at least for our community.

"Google can much better afford to invest in NaCl, but that won't necessarily make a standard. The toolchains and OSes are likelier to support control-flow integrity enforcement in native code sooner than the browser makers, IMHO."

NaCl, known as "Salt" because NaCl is the molecular formula for salt, is a sandboxing technology for running a subset of Intel x86 native code using software-based fault isolation. The Google Native Client technology uses software fault isolation (SFI) to enable the execution of untrusted native code inside a Web browser, giving Web applications greater access to the performance of the client machine while avoiding the security problems with current infrastructure for plug-ins. PNaCl, pronounced Pinnacle, is a suite of tools for building, testing and distributing Native Client programs in an instruction-set neutral format. PNaCl uses the Low-Level Virtual Machine (LLVM) bitcode format to represent instruction set architecture (ISA) neutral portable executables compiled from code written in a variety of languages including C and C++.

Gal summed up Mozilla's goals for B2G:

"A number of intermediate steps are possible. I am very interested in making a beefed up web stack with powerful local APIs available to users of existing devices. I think we can do this without distracting from the ultimate goal: breaking the stranglehold of proprietary technologies over the mobile device world."

Rocket Fuel