207 points · by danabramov · 12y ago · 142 comments
Coincidentally I submitted a new version of my own browser app to the AppStore, on the same day they made the announcement. I added support for the new Firfox sync protocol - it took me forever to get it working and now it's kind of redundant :-/
Anyway, if someone is interested in the source: https://github.com/graetzer/Foxbrowser
You will have to install this from source to get the latest version
This is on an iPhone 5S running iOS 8.1.1, with about 200 bookmarks. If there are any crash logs I can provide, let me know.
Also I hope the dev of iCab reads HN and can get some benefit from your code - he's not added support for new FF sync yet.
https://github.com/graetzer/Foxbrowser/commit/a5ab03e91c06e1...
That said.. As far as I understand the 'real meat', the engine, is now webkit. Which defeats the process for me. The UI was always what Firefox was lacking in and even the very latest design decisions are - well - not quite my cup of tea at least and potentially questionable.
I would like to understand what Mozilla gains here (if this is mostly a 'skin' around webkit/a web view control) and why iOS users would install it (I'm on Android - dipping my toes into FirefoxOS every couple of weeks).
Edit: Thanks for reminding me of Sync as a great use case for a Firefox browser, even if it's using a different engine.
On iOS you use WebKit or you don't make a browser. They don't have a choice. As for why you would install it, probably sync. If you use Firefox on desktop presumably you can now access your bookmarks, history etc on iOS.
Remember the days when software choice was a thing, and Microsoft were condemned for merely including a browser with the OS, not banning all software competition? Maybe in about a decade the competition authorities will wake up to this.
The restriction is that you must use WebKit as the rendering engine for content that contains JavaScript.
Also, I don't know how this works, but I'm guessing that some of the revenue they make goes towards supporting the Mozilla Foundation? These guys put out a lot of really awesome stuff, especially evangelizing web programming in impoverished communities in India and such.
Well, I don't mean to appeal to charity. But its just one of the results of this project and experiment. At my last job, we used their open source JS library for handling video content to make a really awesome training application.
Seeing as how it has been so useful, just yesterday I set up a recurring donation of $10/month. I figured, well, I pay that much for Netflix anyways, and use Firefox so heavily. So, it made perfect sense to show my support this way.
Also, iOS seems like a fairly hostile environment for 3rd-party browsers since it's not possible to change the system browser -- that's probably why mobile Safari has such a large usage share on iOS.
If they use WKWebView I'm not even sure they can implement the features of a plain old browser, never mind include addons/extensions.
One more plus for WkWebView that I forgot - the history list and moving backwards/forwards in it. I agree it has some really nice pluses, but at least for my use cases (and the use cases I would be interested to see implemented in iFirefox) it doesn't seem to be the right choice.
Restricting what developers can and cannot do on a platform allows Apple to give more guarantees and reliability in terms of performance and battery usage, as well as security and stability. Those are the primary reasons behind Apple's restrictions on the iOS platform.
You can render all the HTML you want, you just can't allow untrusted code to be executed.
No, they must use WebKit:
"Apps that browse the web must use the iOS WebKit framework and WebKit Javascript"
(if you could, everyone would just do that to get dynamic behavior using javascript in their apps as a scripting language)
They don't have a choice, I'm glad to see them do something pragmatic here. On iOS you can ship a WKWebView browser or nothing. Given how big mobile has become it's sad that it took them 6+ years to do this. Lots of people use Chrome on iOS but that only came out 2 years ago. It could have been Firefox.
- Given that Apple does not allow other render engines. What makes this Firefox?
I think that's an interesting question. Is a browser defined by its rendering engine or by its features and UI?
When Chrome used WebKit, it was clearly understood by everyone to be different from Safari, even though the rendering engine was the same (I know, the differences were big), but a Firefox browser that uses WebKit seems to not be considered Firefox.
Personally, while I understand the philosophical and political differences, I think the browser is defined by its features, not the rendering engine: the user wants their bookmarks to sync between the phone and the computer, they don't care whether the two programs use the same library to draw the page on the screen or not, just like they don't care which malloc() implementation they use.
To put it in fewer words: Chrome on iOS is still Chrome, not Safari, because it has Chrome's features.
(This would not have been true a decade ago, but rendering engines compatibility is much less of an issue now)
Chrome was on webkit but used V8. And unless something has changed all non-safari browsers and webviews use an inferior JS engine.
Edit: (Something has changed, WKWebView now has the Nitro JS Engine, cool beans)
So, to be fair, Chrome was much more than V8 (which was also a part of its voodoo)
The icon and a bit of UI design. That plus the ability to sync bookmarks and passwords with Firefox Sync. Otherwise, it's Firefox in name only. It's just a skin over Safari, like all other iOS browsers as per Apple's rules.
And with the release of WKWebView, I guess it makes it a skin.
Really? Can you provide a link?
> Are there any alternatives way to build code for iOS?
http://iphonedevwiki.net/index.php/Compiling_iOS_application...
No restrictions there.
We should also call super.isValid(), but that'll fail: Global is external, but doesn't have external or weak linkage! Swift compiler bug #18422804.
Interestingly, it appears to do everything BUT display web pages at this point! Looks very preliminary.
https://www.dropbox.com/s/o5kmot2fg6i7wmx/Screenshot%202014-...
Displaying web pages is easy with the build in UIWebView (or WKWebView) component
https://blog.mozilla.org/blog/2010/07/15/get-firefox-home-on...
Development stopped in 2012:
https://blog.mozilla.org/services/2012/08/31/retiring-firefo...
It's not, and just because Google also caved in to Apple's tyranny doesn't make it right for everyone to do it.
A lot of Mozilla projects have their main repos on GitHub, including Rust, Servo, and Firefox OS.