[Webkit-unassigned] [Bug 29481] New: [Qt] QWebFrame::evaluateJavaScript() always returns null

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 18 08:44:50 PDT 2009


           Summary: [Qt] QWebFrame::evaluateJavaScript() always returns
           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-3019

--- Description ---

EvaluateJavaScript is supposed to provide the return value of the script. It's
always null. 

int main(int argc, char *argv[])
    QApplication app(argc, argv);

    QWebView *view = new QWebView;
    view->setHtml("<html><body>Hello world</body></html>");

    QEventLoop l;
    QTimer::singleShot(2000, &l, SLOT(quit()));

    qDebug() << "evaluating javascript";

    QVariant retval =
view->page()->mainFrame()->evaluateJavaScript("alert('hi'); return true;");
    qDebug() << retval;

    return app.exec();

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