Apple has (partly) open sourced the WebKit and JavaScriptCore engine they use in iOS: http://www.opensource.apple.com/release/ios-433/
It is already possible to build, use, and ship your own version of JavaScriptCore on iOS. Is it, however, possible to do the same with the rendering engine of WebKit? The UIWebView on iOS is very limited. The vital feature it is missing is accessing the JavaScriptCore JavaScript context object. Without it, it's close to impossible to run some code directly in JavaScriptCore and some code in the web view while sharing the same JS engine. So I'm interested in building my own WebKit-based web view that exposes the JavaScript context.
Are there any projects that have done any work in this regard yet? Would the compiled web view library be far too big to ship with an app?
Thanks!
It is possible, but not allowed by Apple. For the same official reasons that they did not allow Google to ship their own WebKit version with their browser. Google has to use UIWebView.
This is very feasible. In fact, it has already been done. Impact is an iOS game engine that compiles its own JavaScript core. Here's a blog post with some technical details.
I won't elaborate further here, the links should provide more than enough detail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With