[webkit-dev] Qtish API for JavaScriptCore

Simon Hausmann hausmann at kde.org
Wed Aug 26 13:12:43 PDT 2009

Hi fellow WebKit contributors!

Currently the Qt port of WebKit merely provides an API to deal with rendering 
web content, and as such our interface to the underlying JavaScriptCore engine 
is minimal.

We, the team of Qt developers at Nokia and INdT, would like to add a C++ Qt  
API to JavaScriptCore as well, to allow application developers to for example  
embed the JavaScriptCore engine into their applications.

We want to give developers the ability to introspect the environment, inject  
custom classes and call functions using a C++ API that uses Qt types and has a  
Qt-ish feel to it. Current releases of Qt come with such an API as part of the 
QtScript module, which however is based on an in-house developed interpreter.

So we decided to combine the well-tested API with a much better engine and  
spent the past few months making QtScript merely another API for  
JavaScriptCore, with only minimal changes.

We would like to contribute this API to the WebKit project, actively develop 
it there and therefore ask the community for opinions, thoughts or objections.

The API itself consists of 12 public classes. An introduction and
overview as well as the detailed class documentation can be found at


 which is based on the unchanged API on top of the old engine.

If the community agrees, we would like to begin the process of
contribution in Bugzilla with patches for review that populate a
sub-folder in JavaScriptCore, for example JavaScriptCore/qt or

On behalf of the Qt developers,

More information about the webkit-dev mailing list