News for hackers. Stuff that matters.
Re:Firefox Focus – a free, fast and easy to use private brow... by lmedinas on Thursday November 17, 2016 @09:49AM (#12977855)
Why having a separate application with these features instead of adding them to Firefox for iOS ?

Is it planned to have content blockers support in Firefox for iOS ?

Re:Firefox Focus – a free, fast and easy to use private brow... by st3fan on Thursday November 17, 2016 @10:46AM (#12978421)
It is complicated. Here is the story of two WebView implementations in iOS:

Firefox is based on the WKWebView. Modern and Fast, but has a very poor (thin) API. It has zero options for interacting with the network stack, which is a requirement for content blocking. Bugs have been open since iOS 8, Apple does not seem to be interested or does not have the resources to surface more API. All the APIs are in WKWebView, just private.

Focus uses the older UIWebView. Slow, but better ability to interact with the network layer. Not ideal, but at least it is possible.

So to answer your question: We would have to replace WKWebView in Firefox for UIWebView. We've been very close to doing this in some form. But it is is big compromise in terms of functionality and stability. So I am not sure when and in what form that will happen.

Stuck between a rock and a private API.

Re:Firefox Focus – a free, fast and easy to use private brow... by atarashi on Thursday November 17, 2016 @12:39PM (#12979550)
There is a way to interact with the network latyer even when using WKWebView. Since iOS9 there are the Network Extension APIs which allow you to access (and modify/filter) raw packet data.

For example: https://developer.apple.com/reference/networkextension/neapp...

Re:Firefox Focus – a free, fast and easy to use private brow... by st3fan on Thursday November 17, 2016 @12:48PM (#12979637)
Yeah we know these things exist. I just don't think using a VPN or a global Network Extension or a global HTTP interception is a good solution. It would be a workaround.

We need a real solution. We need better WKWebView APIs. The requests are known. The bugs have been open since iOS 8. Two years.

Re:Firefox Focus – a free, fast and easy to use private brow... by gosukiwi on Thursday November 17, 2016 @12:08PM (#12979230)
That's pretty ridiculous for Apple, I understand they make it for safety purposes but they can't deny it also gives them an unfair software advantage. Kind of like old Microsoft and it's private undocumented APIs.
Re:Firefox Focus – a free, fast and easy to use private brow... by zapu on Thursday November 17, 2016 @01:05PM (#12979787)
Is either able to use JIT for JavaScript engine or is it only enabled for Apple's "blessed-process" iOS Safari?
Re:Firefox Focus – a free, fast and easy to use private brow... by st3fan on Thursday November 17, 2016 @02:17PM (#12980497)
Only the WKWebView gets fast JavaScript. Any app that uses it will inherit that functionality.

For example, Firefox for iOS ranks exactly the same as Safari in speed benchmarks.

Re:Firefox Focus – a free, fast and easy to use private brow... by eridius on Thursday November 17, 2016 @06:02PM (#12982588)
WKWebView executes out-of-process just like Safari and so it performs just as well. In fact, that's the whole reason that WKWebView exists (instead of just using UIWebView).
Re:Firefox Focus – a free, fast and easy to use private brow... by brendoncrawford on Thursday November 17, 2016 @10:57PM (#12984194)
Thanks for explaining this in simple terms. I have been curious about this for a while.