Apple has (partly) open sourced the WebKit and JavaScriptCore engine they use in iOS: /
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 piled web view library be far too big to ship with an app?
Thanks!
Apple has (partly) open sourced the WebKit and JavaScriptCore engine they use in iOS: http://www.opensource.apple./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 piled web view library be far too big to ship with an app?
Thanks!
Share Improve this question edited Nov 27, 2018 at 23:13 Johannes Fahrenkrug asked Jul 28, 2011 at 11:34 Johannes FahrenkrugJohannes Fahrenkrug 44.9k20 gold badges133 silver badges174 bronze badges3 Answers
Reset to default 2This is very feasible. In fact, it has already been done. Impact is an iOS game engine that piles 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.
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.
I guess unfortunately the answer is no.
The question was whether it's feasible or not. Based on not receiving any answers and not finding any information online I concluded that it would not be impossible but far too much work to be feasible.