Bug 52053 - [Qt] The QGraphicsProxyWidget created in QWebPage::createPlugin is not added as javascript object automatically
Summary: [Qt] The QGraphicsProxyWidget created in QWebPage::createPlugin is not added ...
Status: RESOLVED DUPLICATE of bug 51464
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
Keywords: Qt, QtTriaged
Depends on:
Reported: 2011-01-07 04:06 PST by qt-info
Modified: 2011-01-30 09:18 PST (History)
2 users (show)

See Also:

test case (3.66 KB, application/x-gzip)
2011-01-07 04:08 PST, qt-info
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description qt-info 2011-01-07 04:06:51 PST
If QWebPage is used with QWebView, the qobject created in createPlugin is exported to javascript automatically. But if QWebPage is used with QGraphicsWebView, the QGraphicsProxyWidget created is not exported to the javascript. The user has to call addToJavaScriptWindowObject manually.

There should not be such difference.

tested against Qt 4.7.1

in the attached test case, you can change the macro defined in mywebpage.h to see the difference.
Comment 1 qt-info 2011-01-07 04:08:15 PST
Created attachment 78219 [details]
test case

test case. change the macro in mywebpage.h to see the difference
Comment 2 Benjamin Poulain 2011-01-30 05:46:30 PST
Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bugs here (missing Qt keyword).

Please use your own address when reporting bugs. With qt-info, we have no way to ask questions. My guess is Jing did the job on this bug :)
Comment 3 Noam Rosenthal 2011-01-30 09:18:39 PST
Fixed in trunk: http://trac.webkit.org/changeset/74909

*** This bug has been marked as a duplicate of bug 51464 ***