[Webkit-unassigned] [Bug 51464] New: document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 22 05:36:37 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=51464
Summary: document.getElementById(...) doesn't return the right
object in combination with QGraphicsWidget
Product: WebKit
Version: 420+
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: thomas.senyk at nokia.com
Created an attachment (id=77207)
--> (https://bugs.webkit.org/attachment.cgi?id=77207&action=review)
example code
document.getElementById(...) doesn't return the right object if the plugin (provided by QWebPluginFactory) behind it is a QGraphicsWidget ... it returns something, but you can't call any property/function
I attached a example where you can see the problem.
The important files are:
testplugin.h (there you can change the type of TestPlugin by commenting/uncommenting the #define BUGREPORT_USE_QWIDGET
testpluginfectory.cpp ... in TestPluginFactory::create is a note which is maybe important
test.html see function testFunc() ... to see the output: right-click on html-side => "inspect" => "console"
Possible setups:
1. the best working setup:
TestPlugin is a QWidget => everything seems to work with and without addToJavaScriptWindowObject (see note in TestPluginFactory::create)
2. the worst setup
TestPlugin is a QGraphicsWidget && addToJavaScriptWindowObject is NOT executed => nothing in test.hmtl=>testFunc() works
3. at least something is working
TestPlugin is a QGraphicsWidget && addToJavaScriptWindowObject is executed => at least: console.debug("foobar:" + foobar.doSomething()) works
--
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