Bug 52053

Summary: [Qt] The QGraphicsProxyWidget created in QWebPage::createPlugin is not added as javascript object automatically
Product: WebKit Reporter: qt-info
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: benjamin, noam
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
test case none

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 ***