7 ms·
Would this allow for better ad blocking software (no internal vpn tricks, etc), or would Apple likely reject a forked Chrome with adblocking from their app stor
by tyingq 10y ago
Would this allow for better ad blocking software (no internal vpn tricks, etc), or would Apple likely reject a forked Chrome with adblocking from their app store?
- joeblau 10y agoYou can already do ad blocking natively through Safari Content Blocking extensions. There is also another trick you can do where you can use a VPN that routes known top-level-domains to 0.0.0.0 which would allow for entire Apple System blocking (similar to /etc/hosts).
- gcp 10y agoYou can have ad blocking, but you can't have the fast JavaScript engine and ad blocking, unless you are Safari. So you can't have a Chrome or Firefox with both, unless Apple fixes their APIs or allows the "real" versions of those browsers.
- djrogers 10y agoNot true at all, and also nothing is stopping you from building your own ad-blocking logic in to your browser either - iCab Mobile for example does just that.
- gcp 10y agoIt's not possible to do that and use the fast JavaScript engine from WKWebView. I'm sorry but you have no idea what you're talking about.
- azinman2 10y agoWhy not? WKWebView has a delegate callback for the policy to load any given URL. You can implement ad blocking that way. Or you can chose to inject CSS rules if that's your fancy. What's the technical issue?
- ash_gti 10y agoAre you referring to the `-[WKWebView navigationDelegate]`? Thats only used for user initiated navigation, not loading of assets. You could still inject a JavaScript file or CSS file though to help hide pieces of the view. But that would be content blocking after the HTTP requests have been made. I don’t know of a way to intercept the HTTP requests as they’re being made from a WKWebView like Safari does for content blocking.
- foodstances 10y agoThe technical issue is that WKWebView does not honor any custom classes registered with NSURLProtocol (`NSURLProtocol registerClass:`) like UIWebView does, so you don't get to intercept/change/deny every request (not just top-level requests) that the browser makes.
- EGreg 10y agoWhat if we released our own browser with a different interface? What kind of new features would people use it for if Chrome and Safari already exist?
- KayL 10y agoPasscode. There's always a reason you will lend your iPhone to your closed person. I'd like a feature to lock it down to avoid them using my Google Service & browser history.
- em3rgent0rdr 10y agoChrome for Android doesn't even allow extensions.
- josteink 10y agoSadly only Firefox for Android does this. I was seriously surprised to find Firefox on Ios to be so severely crippled.
- em3rgent0rdr 10y agoAs I understand, Firefox on iOS is simply a privacy-protecting wrapper around iOS's built-in browser.
- gcp 10y agoThat's Focus, actually :-/ Firefox for iOS can't use content blocking.
- st3fan 10y agoIf something is crippled in Firefox for iOS, nine out of ten times it is because Apple severely limited the exposed APIs of WKWebView. All browsers that are based on WKWebView are stuck between a rock and a hard place.