[Webkit-unassigned] [Bug 50548] New: Hang when trying to enumerate properties for NPObjects created by Hosted Plugins
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Dec 5 22:54:20 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=50548
Summary: Hang when trying to enumerate properties for NPObjects
created by Hosted Plugins
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Plug-ins
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: duncantebbs at turbulenz.com
Created an attachment (id=75646)
--> (https://bugs.webkit.org/attachment.cgi?id=75646&action=review)
Replace main.m with this in NetsapeCocoaPlugin example
I apologize if this is not the correct place to post this.
The problem occurs under Safari (5.0.3) when running a 32bit NPAPI plugin.
Steps to reproduce:
- From Javascript, call a function on the plugin.
- In the plugin function create a custom NPObject (with a valid enumerate method)
- From the same plugin function, invoke a Javascript function, passing the custom NPObject as a parameter
- From this invoked Javascript functon, attempt to enumerate the properties of the parameter with something like:
for (i in pluginObject) {
...
}
Both browser and WebKitPluginHost and the browser process hang. Equivalently, the Javascript debugger shows the object as 'ProxyRuntimeObject' and hangs when trying to inspect it. Getting specific properties works fine.
The code dealing with this appears to be in WebKit, which is why I'm submitting this here. However, I cannot see a way to try this with the latest build. Chromium appears not to use the WebKitPluginHost functionality.
I have attached a modification of the NetscapeCocoaPlugin main.m which shows the problem. Build for 32 bit and run with the attached test.html.
If you need further information or if there is a way I can check the ProxyRuntimeObject functionality myself with the latest build then please let me know.
Thanks.
--
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