RESOLVED INVALID 29371
[Qt] Automatically connect JavaScript functions to signal emissions of plugin objects
https://bugs.webkit.org/show_bug.cgi?id=29371
Summary [Qt] Automatically connect JavaScript functions to signal emissions of plugin...
Tor Arne Vestbø
Reported 2009-09-18 06:22:44 PDT
This bug report originated from issue QTBUG-2747 <http://bugreports.qt.nokia.com/browse/QTBUG-2747> --- Description --- HTML code usually hooks JavaScript functions to events emitted by plugin objects using one of the following syntaxes (assuming that the class behind testWidget has a signal "TestSignal(QString)"): <object id="testWidget" type="testmime" width="500" height="400"> </object> <script type="text/javascript" language="javascript"> // Netscape style testWidget.TestSignal = function(s) { alert(s); } // Internet Explorer style function testWidget::TestSignal(s) { alert(s); } </script> Neither of this works with QtWebKit; the C++ code that wants to hook a signal up with a JavaScript function has to do webView->page()->mainFrame()->evaluateJavaScript("TestSignal(\"" + s + "\")"); instead.
Attachments
Jocelyn Turcotte
Comment 1 2014-02-03 03:15:39 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.
Note You need to log in before you can comment on or make changes to this bug.