[webkit-dev] Query regarding handling of NPObjects in webkit
chandan.jc at gmail.com
Thu Mar 3 01:18:25 PST 2011
I'm also attaching a simplified sequence diagram to depict the same
issue. Please have a look.
On Thu, Mar 3, 2011 at 1:55 PM, Chandan Apsangi <chandan.jc at gmail.com> wrote:
> I'm working on an issue related to NPAPI plugin on QT port of webkit on Symbian platform.
> In the JS callback, we are passing an NPObject instance and to do this we are using NPN_InvokeDefault(). This NPObject has been created in my plug-in
> with NPClass *_class in the NPObject, pointing to a static global instance of NPClass filled with my function pointers(for allocate, deallocate,etc) .
> Once NPN_InvokeDefault() is called, webkit is calling NPN_RetainObject() on this NPObject (while creating CInstance) increasing the ref count.
> Is there anything wrong with my understanding of NPAPI memory management? If not, then would it be right for the webkit to trigger the Garbage collection forcefully before unloading the plug-in to prevent this crash?.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 75318 bytes
Desc: not available
More information about the webkit-dev