[Webkit-unassigned] [Bug 29371] New: Automatically connect JavaScript functions to signal emissions of plugin objects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 18 06:22:44 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29371

           Summary: Automatically connect JavaScript functions to signal
                    emissions of plugin objects
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: Qt
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vestbo at webkit.org


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list