Bug 31863
Summary: | [Qt] Enable access to WebKit's JavaScript environment with the QtScript API. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Hausmann <hausmann> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Enhancement | CC: | cmarcelo, florianlink, girish, jedrzej.nowacki, kent.hansen, kimmo.t.kinnunen, laszlo.gombos, pvarga, yael |
Priority: | P3 | Keywords: | Qt, QtTriaged |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | 32565, 34533, 34575, 34592, 34749, 34793, 34843, 34847, 34850, 35387, 35577, 35578, 35968, 36008, 36123, 36594, 36600, 36603, 36650, 37596, 37598, 37610, 37617, 37729, 37953, 38110, 38112, 39114, 39115, 39356, 40058, 40067, 40110, 40114, 40120, 40412, 40415, 40903, 40911, 41199, 41520, 41598, 41662, 41664, 41665, 41666, 41667, 41668, 41672, 41673, 41674, 41675, 41676, 41677, 41678, 41680, 41681, 41683, 41713, 41769, 41839, 42363, 42364, 42366, 43038, 43115 | ||
Bug Blocks: | 23250, 24102, 30556 |
Simon Hausmann
This allows developers to easily expose new JavaScript APIs to WebKit, without having to change WebKit or to use a NPAPI plugin. For example, bindings to an existing C++ library could be made available in WebKit.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Simon Hausmann
The high-level requirements are tracked at http://bugreports.qt.nokia.com/browse/QTWEBKIT-2
Simon Hausmann
*** Bug 29877 has been marked as a duplicate of this bug. ***
Jędrzej Nowacki
*** Bug 23250 has been marked as a duplicate of this bug. ***
Jędrzej Nowacki
It is time to start, as it was discussed on dev mailing list (https://lists.webkit.org/pipermail/webkit-dev/2009-August/009610.html), it would be really great to have Qtish API over JSC. We considered all hints and suggestions and we decided to create a new QtScript like API on top of JSC's __public__ C API. We would like to start developing in the WebKit repository from the very beginning to avoid any confusion and make our development process transparent.
I would like to keep the bug (31863) as a meta-bug. All other development bugs should be connected to this one as a blockers.
Roadmap:
1. Create a small QJavaScript API.
a) The API should provide enough functionality to be useful (run scripts, call functions, convert basic data...)
b) The API implementation should be simple, all optimization work should be started after the API review
2. Change the building system - QtJavaScript and JSC should be build as a shared library (bug 27551)
3. Connect the new API to the QtWebkit API
4. Add new features
Jędrzej Nowacki
(In reply to comment #4)
Previous comment is a bit outdated. We decided to not create a new API, but instead move the QtScript implementation over JSC C API.
The current roadmap can be found here:
http://bugreports.qt.nokia.com/browse/QTBUG-11464
Caio Marcelo de Oliveira Filho
This work is "paused" and we are exploring other options, more details in http://developer.qt.nokia.com/wiki/Category:Developing_Qt::Qt_Script
Jędrzej Nowacki
Porting QtScript API over JSC C API will not be continued.
Bug numeber for code cleanup related work: 64088