Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are other browsers not allowed to implement their own rendering engines or is their some other reason that Chrome and Firefox both use the web view?


Only the iOS webview is allowed to render web content.

Additionally only Apple's JavaScript engine is allowed to use a JIT compiler.

The only benefit is whatever extra features they might offer, like bookmark synchronization.


> Only the iOS webview is allowed to render web content.

This is quite shocking. I wonder how a platform with such policies could be universally accepted and praised by the tech community. Microsoft didn't achieve this level of closedness but become universally hated.


There is actually a fair amount of people who do not accept such a policy and use Android instead. Apple's super locked-down ecosystem is why I use Android, despite iOS being (imo) a better OS. You tend not to hear from us because... we don't use iOS.


>You tend not to hear from us because... we don't use iOS.

Seriously? we hear from the non-iOS tech crowd all the time about how locked down iOS is.


> "could be universally accepted and praised by the tech community"

Apple's reputation in the tech community is very far from being universally accepted and praised.


The sheer number of backlit white apple logos on display at most tech conferences I've ever visited (ones surrounding open source projects!) would seem to imply otherwise.


Mac laptops are useful for web developers as they offer a good blend between open-source development tools (GNU tools, etc...) and commercial tools (Photoshop, etc...).

However, if you've not seen any criticism of Apple in the tech community, then Google for it, it won't take long to find critical voices about Apple (and I'm not referring to trolling, well thought out criticism is easy to find too).


I am forced to use Mac hardware at work but run Linux as the OS on my Macbook Pro :) Not all of us are hardcore Mac peeps!


I had a Mac before the iPhone came out but after Lion I switched to Linux.


On one of the Debug[1] podcasts (I can't remember which one now), Don Melton[2] claims the decision to not allow other web rendering engines or Javascript implementations is because they don't know how to allow those and keep iOS secure, and that is the reason behind a lot of limitations enforced in iOS.

Apple is certainly more closed than Microsoft ever was. The difference in perception is likely because Apple has never had a monopoly. There are more Android phones than iOS.

[1] http://www.imore.com/debug [2] http://donmelton.com/about/


Personally I don't have a problem with that.

What I think is happening is that the hipster generation that grew with Mac OS X and helped save Apple is just discovering the Apple of yore.

The old Apple was quite proprietary, but they needed to sell an history to save the company.

So with NextSTEP adoption and increase of UNIX culture at Apple, they tried to cater a picture of standards adoption and welcome feeling to UNIX devs.

I value more cool tech than openess, but to each its own.


Chrome on iOS embeds its own network stack, which it touts as being faster and more fully-featured than Safari’s.


The Safari network stack is actually pretty good. It has good SSL/TLS support and does SPDY pretty well.


It still uses the IP iOS stack, right?


I’d guess so. The original Chrome for iOS announcement [1] said:

it’s been challenging to re-use critical Chromium infrastructure components. That said, there is a lot of code we do leverage, such as the network layer, the sync and bookmarks infrastructure, omnibox, metrics and crash reporting, and a growing portion of content.

[1] https://groups.google.com/a/chromium.org/forum/?fromgroups#!...


Until your battery goes flat. Oops.


Precisely the reason I don't care that the other big browser engines can't be ported to iOS. Their concern for battery life/power drain is so low that there's zero chance I'd use them anyway. I don't even use them on the "desktop" (laptop) anymore, for that reason.


> Additionally only Apple's JavaScript engine is allowed to use a JIT compiler.

Can you elaborate? I was under the impression that as of iOS 8, if a developer implements WKWebView in place of UIWebView they would have access to Nitro.


This is true, but what pjmpl was saying is that Mozilla couldn’t port their JITted JS engine to iOS and expect it to get through the app store review – they have to use Apple’s.


> Additionally only Apple's JavaScript engine is allowed to use a JIT compiler.

I'm not intimately familiar with the iOS API, but I believe that this is no longer the case, courtesy of WKWebView[0], which was released in iOS 8.

0: https://developer.apple.com/library/ios/documentation/WebKit...


The WKWebView is just a newer API for a WebKit webview, which replaced the older and slower UIWebView. Still Apple's WebKit that you're forced to run.


True, but JIT should now work for both Chrome and FF.


Actually I think the javascriptcore restriction is the main thing. I'm not sure that, say, the kindle app has to use a web view (for example)


All apps on iOS are forced to use the built-in webkit engine. Think of it as if every browser on Windows was forced to use the IE engine and Chrome, Firefox, et al never existed, just a ton of IE skins.


It's not allowed. From Apple's guidelines:

> Apps that browse the web must use the iOS WebKit framework and WebKit Javascript


Yes, there's a rule which prohibits anyone from implementing their own renderer.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: