News for hackers. Stuff that matters.
Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @11:38AM (#5369147)
The "browser" in Firefox OS is just another window. Since the whole OS is a browser, they don't have separate code for the browser app.

If you want another browser, you just have to write it up in HTML + JS, like every other app on the device.

Re:Firefox OS Simulator – previewing version 3.0 by anon1385 on Wednesday March 13, 2013 @11:47AM (#5369202)
>you just have to write it up in HTML + JS, like every other app on the device.

Except the browser.

Mozilla could build Firefox for iOS using the technologies available to other third party apps on iOS. They (rightly) don't think that is good enough because it means they can't build a browser that is competitive performance wise with the built in browser.

http://news.cnet.com/8301-14013_3-57573440/mozilla-says-no-p...

The sticking point for Mozilla is not being able to carry over its sophisticated rendering and javascript engines to iOS. Essentially, the organization doesn't feel like it can build the browser it wants to for Apple's platform, Sullivan told CNET.

Re:Firefox OS Simulator – previewing version 3.0 by callahad on Wednesday March 13, 2013 @11:55AM (#5369244)
> Except the browser.

Actually, Firefox on FirefoxOS is written in HTML + JS. Here's the source: https://github.com/mozilla-b2g/gaia/tree/master/apps/browser

Sure, the HTML + JS runtime on FirefoxOS is Gecko, but that's an implementation detail. The browser itself, as users will experience it, is Just Another Webapp.

Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @02:38PM (#5370227)
> Sure, the HTML + JS runtime on FirefoxOS is Gecko, but that's an implementation detail. The browser itself, as users will experience it, is Just Another Webapp.

Except that it's NOT, because the core of the whole thing -- HTML + JS -- is native.

Apple does the same thing on iOS -- you can use UIWebView to render HTML/CSS, and to execute JS. Yet that wasn't good enough for Mozilla -- why?

Re:Firefox OS Simulator – previewing version 3.0 by callahad on Wednesday March 13, 2013 @04:39PM (#5370982)
> you can use UIWebView to render HTML/CSS, and to execute JS. Yet that wasn't good enough for Mozilla -- why?

One issue is that Apple gives themselves a much faster version WebKit, but doesn't let anyone else use it. If you want to be a browser on iOS, you have to use an intentionally crippled engine.

Another is that Apple's iron grip on iOS is in direct opposition to the Mozilla Manifesto. Mozilla simply can't be a party to that platform without compromising its values.

That second issue is at the heart of FirefoxOS.

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @03:07PM (#5370425)
Apple doesn't allow 3rd party apps to use their JIT, which means all the JS is slow. http://daringfireball.net/2011/03/nitro_ios_43 And they're not allowed to make certain calls into the OS to make a fast native JIT, even if they wanted to make their own browser from scratch. So due to artificial policy decisions, it's doomed to be slow.
Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @03:14PM (#5370467)
> And they're not allowed to make certain calls into the OS to make a fast native JIT, even if they wanted to make their own browser from scratch. So due to artificial policy decisions, it's doomed to be slow

Yeah, and Firefox doesn't allow native code execution at all either, so, also slow. Mozilla doesn't have the moral high-ground here, in that they're also creating two tiers of developer: Mozilla, and everyone else.

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @03:29PM (#5370552)
At least if Chrome made a version like they did with iOS (just a wrapper around the native web engine) it would have a JIT. That would be an improvement over the iOS version.
Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @03:50PM (#5370713)
That's pretty much splitting hairs. Let's say Google wants to push forward dart, NaCL, or something Mozilla has never thought of, or would never agree with.

Now what?

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @03:57PM (#5370758)
That is already the situation with native apps. That's what the real competition is! Not Firefox vs Chrome but open standards vs closed platforms. The point of the Firefox OS project is to make standards-based HTML+JS the most appealing platform for developing and deploying mobile apps. They need to make it better than native apps on any platform, and at least as good as any non-standard web technology. There is very little point in making a Dart app when a JS app is within 10% as fast and runs on every platform.
Re:Firefox OS Simulator – previewing version 3.0 by pifflesnort on Wednesday March 13, 2013 @04:24PM (#5370896)
Except for the fact that world-changing technologies like the web would never have existed if nobody was permitted the first web browsers because platform vendors limited everyone to gopher.

I don't want to live in that two-tier world of web vendors and everyone else.

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @04:34PM (#5370958)
Maybe that's true, but it's really a different conversation. We were talking about getting your choice of web browser on a mobile OS. You're always going to be at the mercy of a platform vendor - Mozilla, Apple, Linus Torvalds, Intel. Honestly at least Mozilla are trying for an open development process, more than anyone else. Even Android's source only gets published after the code has already shipped. I trust Mozilla more than anyone except maybe the Linux project itself to do right by application developers.
Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @11:54AM (#5369234)
I'm not sure what you mean. Apple rejects apps which duplicate native functionality. It took years for Google to get their Maps and Chrome apps into the App store. And guess what Chrome is on iPhone? It's just a wrapper around the native iOS webkit engine, exactly the same as the Firefox app is a wrapper for the native gecko on FirefoxOS.

Also, the reason you can't get good performance on a 3rd-party iOS browser is that Apple artificially restricts JIT to first-party apps.

Re:Firefox OS Simulator – previewing version 3.0 by MatthewPhillips on Wednesday March 13, 2013 @12:52PM (#5369562)
> Mozilla could build Firefox for iOS using the technologies available to other third party apps on iOS.

That's not true, Mozilla could build Firefox for iOS the way they want to, they just can't release it on the App Store. It's an imposed limitation, not a technical one.

As others have said, if you can compile WebKit with Emscripten you can build a WebKit-based browser for Firefox OS that gets 2x performance vs. native.

Re:Firefox OS Simulator – previewing version 3.0 by Millennium on Wednesday March 13, 2013 @11:43AM (#5369174)
Sounds kind of like what Microsoft said when they were first "integrating" IE into the system.
Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @11:49AM (#5369216)
Well, Netscape etc. cost money at the time MS included IE with Windows. They were using their market position in the desktop space to elbow into the browser space. That was a clear abuse of a monopoly. Mozilla doesn't have a monopoly, so they can't abuse it. And now, most of their competition is also free, so giving a browser away for free isn't anti-competitive.

Besides, the OS is literally a browser. The only way to avoid having a default browser is to remove the little Firefox-branded app that opens a new gecko window. That doesn't seem to promote competition at all.

Re:Firefox OS Simulator – previewing version 3.0 by Millennium on Wednesday March 13, 2013 @12:01PM (#5369272)
That smacks far too much of "it's not wrong when WE do it." Microsoft ruined this sort of integration for everybody.
Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @12:11PM (#5369325)
Firefox isn't trying to compete with anyone though. They're not interested in blocking competition. In fact, they're trying to encourage web apps that run on every device over native apps that only run on one platform. If everyone switches to a more open system, the Mozilla team will be ecstatic.
Re:Firefox OS Simulator – previewing version 3.0 by anon1385 on Wednesday March 13, 2013 @12:32PM (#5369459)
> In fact, they're trying to encourage web apps that run on every device over native apps that only run on one platform.

Not quite. They are encouraging apps that are based on HTML and Javascript, but as far as I can tell Firefox OS includes plenty of APIs that are not available on other platforms, and there are no plans to bring them to other platforms [1].

Yes this isn't necessarily the fault of Mozilla, they can't force Google/Apple/Microsoft/Opera/Nokia etc to add features to their browsers [2], but that of course is one of the problems of using the 'open' web as a platform for everything. Either you remain standards compliant with very limited features dictated by the glacial/gridlocked standards process, or you extend the standards even without the support of the other big players, resulting in apps that only work on one OS (although are perhaps easier to port, depending on exactly what is missing).

[1] https://wiki.mozilla.org/WebAPI I see plenty of grey "not currently planned for this platform" items in this list

[2] other than to release their own browser on those platforms, which brings us full circle… the most important thing is open platforms where anybody can write and distribute native software targeting them

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @01:25PM (#5369772)
That list is only for various versions of Firefox, not other platforms. The vibration API, for example, is a W3C standard that is supported by Chrome for Android already. HTML media capture (using the camera from a webapp) is supported in Firefox, Chrome, and Opera.
Re:Firefox OS Simulator – previewing version 3.0 by jgon on Wednesday March 13, 2013 @01:30PM (#5369807)
You are so entirely wrong here that I have to guess you are either willfully trying to misrepresent things, or you have done so little research into this issue that your better sense should have told you to not comment.

On the very page you are commenting on as "grey" they explicitly mention that each API will be submitted to the W3C for standardization once they reach a point where it is suitable (ie it has an implementation demonstrating it).

Every single article I have seen about Firefox OS that includes comments from a dev has seen the dev explicitly call out that all the APIs they are creating will be submitted for standardization to allow the apps to run on any browser that supports these open standards.

Please, please either stop misrepresenting the intent of the Firefox OS team, or if you are honestly in error, do more research before attempting to speak authoritatively.

Re:Firefox OS Simulator – previewing version 3.0 by thelukester on Wednesday March 13, 2013 @11:55AM (#5369242)
>"If you want another browser, you just have to write it up in HTML + JS"

So basically, with Firefox OS, you're limited to using the Mozilla browser. Sounds like Firefox is trying to lock you into their standards, exactly what they're accusing Apple of doing with the webkit engine in iOS.

Android and Ubuntu Mobile look to be the only solutions that give me the flexibility I want in a phone OS.

Re:Firefox OS Simulator – previewing version 3.0 by sp332 on Wednesday March 13, 2013 @12:03PM (#5369282)
"Firefox is trying to lock you into their standards"

Yes, the purpose of the project is to promote open standards for phone-oriented web apps.

"exactly what they're accusing Apple of doing with the webkit engine in iOS."

iOS is not an open system and does not promote open standards. The point of the FirefoxOS project is to make interoperable standards that will hopefully be supported by every future web browser.

Re:Firefox OS Simulator – previewing version 3.0 by maxerickson on Wednesday March 13, 2013 @12:08PM (#5369309)
That's a fairly paranoid assumption. The current documentation of the Firefox OS front end suggests that it will be happy to run third party applications that run outside the browser/front-end layer:

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/...