News for hackers. Stuff that matters.
Re:Let's crash the integrated browser in Facebook by eric_h on Tuesday March 14, 2017 @09:54AM (#13867462)
I hate every instance of the in-app browser. I always long press on a link and open it in safari whenever that's possible - those integrated browsers don't support my adblock plugin and are already slower than native safari.
Re:Let's crash the integrated browser in Facebook by signal11 on Tuesday March 14, 2017 @10:03AM (#13867520)
TweetBot does a reasonable job here IMHO. It allows you to choose which browser opens links by default -- it supports Firefox, Chrome, Safari as well as its own in-app browser which is a WKWebView, which means it's just as fast as native Safari and respects your content blockers. Choosing a non-default browser is possible by long pressing on a link.

EDIT - (thanks saagarjha) newer versions of Tweetbot appear to use SFSafariViewController not WKWebView.

Re:Let's crash the integrated browser in Facebook by saagarjha on Tuesday March 14, 2017 @10:28AM (#13867714)
Actually, it's not that simple. There are a couple ways to load websites on iOS:

* UIWebView: Old, slow, but dead simple.

* WKWebView: The new "WebKit" drop-in replacement for UIWebView. It uses Safari's Nitro engine, and allows for full customization for the chrome, but does not allow for content blocking. Most new apps use this.

* SFSafariViewController: A "Safari view"; you have no control over the UI chrome (or browsing history, etc.), but it uses Nitro and loads content blockers.

* Safari app: The actual app. Loads content blockers.

Re:Let's crash the integrated browser in Facebook by rrdharan on Tuesday March 14, 2017 @10:52AM (#13867910)
What advantage does using WKWebView provide for an app over SFSafariViewController? Is it just the ability to change the color and icons to match the rest of the app's style?

Or are apps generally switching over to SFSafariViewController? Curious to hear some iOS folks' thoughts on the matter since I'm uninformed.

Re:Let's crash the integrated browser in Facebook by objclxt on Tuesday March 14, 2017 @11:04AM (#13868009)
Most notably apps can inject arbitrary JS into WKWebView, making it much easier to track The user’s actions.
Re:Let's crash the integrated browser in Facebook by chrisdroukas on Tuesday March 14, 2017 @12:04PM (#13868685)
You can roll your own browser interface using WKWebView — if (for whatever reason) your app supplements the browsing experience, you'd use WKWebView.

SFSafariViewController provides its own Safari-like interface and has an extremely limited set of configuration/customization options.

Re:Let's crash the integrated browser in Facebook by eric_h on Tuesday March 14, 2017 @10:09AM (#13867576)
So I've heard. I've been meaning to install TweetBot for ages, just haven't gotten around to it (and Twitter.ipa is the app in which I most often do the long press to open links).
Re:Let's crash the integrated browser in Facebook by martingordon on Tuesday March 14, 2017 @10:21AM (#13867672)
You may be interested in a little iOS app I wrote that gives you the native Safari experience in almost every app that supports the share sheet: https://itunes.apple.com/us/app/browsecurely-secure-browsing...