[webkit-reviews] review requested: [Bug 41995] Enable binding QObjects to javascript environment for inspector frontend : [Attachment 61104] patch to enable binding QObject to the javascript environment of a QWebInspector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 9 14:52:09 PDT 2010


Jamey Hicks <jamey.hicks at nokia.com> has asked  for review:
Bug 41995: Enable binding QObjects to javascript environment for inspector
frontend
https://bugs.webkit.org/show_bug.cgi?id=41995

Attachment 61104: patch to enable binding QObject to the javascript environment
of a QWebInspector
https://bugs.webkit.org/attachment.cgi?id=61104&action=review

------- Additional Comments from Jamey Hicks <jamey.hicks at nokia.com>
The attached patch enables QObjects to be bound to global variables in the
javascript environment of the inspector frontend. This is useful for writing
alternate inspector frontends in javascript which need additional native
functionality. It's a lighter-weight alternative from using an NPAPI plugin.

The code which instantiates QWebInspector uses this by setting the dynamic
property "q_inspector_js_objects" on the QWebInspector. The value of this
property should be a QMap<QString,QVariant>mapping global variable name to
QObject.

I have used this to add support for eclipse/chrome remote debugging in
QtTestBrowser.


More information about the webkit-reviews mailing list