No, Apple's iOS developer agreements do not allow browsers with their own JavaScript engines:
"Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple’s built-in WebKit framework."
Re:Google Chrome now works on iOS
by patrickaljord on Thursday June 28, 2012 @04:07PM
(#4173644)
Isn't UIWebView a component written by Apple? Why not include Nitro in it? Why would it be a security issue on Chrome but not on Safari? Do people have access to the UIWebView source code? If not, this "security" reason is BS.
Third-party processes on iOS cannot mark data pages as executable, which is a great security feature but it prevents JIT compilers or any other technology that dynamically generates machine code. Apple's built-in apps have an exception to this security mechanism, presumably because Apple is more confident in their own security auditing of those apps. Perhaps with some sandboxing mechanism and/or code auditing process they could allow some third-party apps similar access in the future, but it's not clear whether they feel a need to.
Re:Google Chrome now works on iOS
by patrickaljord on Thursday June 28, 2012 @07:32PM
(#4174490)
> Third-party processes on iOS cannot mark data pages as executable
Doesn't the UIWebView do that for you? And isn't it written by Apple? Why couldn't Apple make it use Nitro? Not sure where the security risk would be.
The restriction on executable pages is enforced by the kernel at the process level. This particular mechanism won't allow for enforcing diffeerent policiees for UIWebView code running in the same process as app code. If UIWebView could run JavaScript code in a separate process like Chrome then it might be possible.
Re:Google Chrome now works on iOS
by patrickaljord on Friday June 29, 2012 @12:13AM
(#4175205)
I thought Safari implemented multi-process a long time ago, not on mobile?
Don't see that rule changing. Let's hope Apple let other browsers be the default though.