[Webkit-unassigned] [Bug 12615] New: NPN_InvokeDefault() on saved function() doesn't work.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 5 11:26:27 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12615
Summary: NPN_InvokeDefault() on saved function() doesn't work.
Product: WebKit
Version: 416.x
Platform: PC
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Plug-ins
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: wbardwel at curl.com
I have a property on the object returned by
NPP_GetValue(NPPVpluginScriptableNPObject) that the JavaScript in my
HTML page sets to a function. I do an NPN_RetainObject() on what
JavaScript passes to the property setting function but when I later
try to call that function pointer with the NPN_InvokeDefault(<NPP that
object was made with>, <saved function pointer>, NULL, 0, <an
NPVariant>); it fails.
And nothing is put in the JavaScript console about why it failed, so I
have no idea what the problem is.
I found a workaround, which is to call "call" using NPN_Invoke() on
the function as the object and "call" as the method, which does work.
But this case is what NPN_InvokeDefault() is for, so it should work.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list