Bug 12615 - NPN_InvokeDefault() on saved function() doesn't work.
Summary: NPN_InvokeDefault() on saved function() doesn't work.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 416.x
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 11:26 PST by William Bardwell
Modified: 2007-04-19 07:43 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Bardwell 2007-02-05 11:26:26 PST
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.
Comment 1 David Kilzer (:ddkilzer) 2007-02-05 12:17:11 PST
Hi William, please test this against WebKit ToT (tip-of-tree) to find out if the bug still exists.  A stand-alone test case (code and/or HTML) would also help to get this bug fixed quicker.  Thanks!

http://webkit.org/building/checkout.html

Comment 2 William Bardwell 2007-04-19 07:43:17 PDT
This works in a recent nightly.