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?
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.