I imagine that would be in violation of Apple's rules around apps executing 'arbitrary' code from 3rd party sources.
Hmm, well firefox could vet them so that they're not 3rd party and the user could permit to inject 'add ons' into every web page loaded. You are allowed to upload html/javascript dynamically (just not shared objects, jvm byte code, etc)
that's such a silly restriction here. Nearly every webpage a user goes to breaks that rule.
That depends on whether the code is executed using Apple's JavaScriptCore framework, or your own interpreter.
It's a stupid rule, but you can execute arbitrary code if you create a JSContext and load it in your app.
What kind of add-ons would you like to see?
Presumably any add-on supported by Firefox on Android.
erm.. ublock :)
uBlock too. Or maybe it would be possible to use the upcoming iOS 9 content-blocking extensions [1], or is it a feature/api usable to Safari only?
The newer web view (WKWebView) will support content blocking extensions across all apps. The older web view (UIWebView) will not support content blocking at all