Yes I am aware of that. That is why I am using 
npnfuncs->pluginthreadasynccall(). Kindly note  that this same plugin working 
fine on Firefox.
Can you please tell me whether one should do anything specific for developing a 
NPAPI plugin for Webkit? 

My understanding is that the plugin that I developed for Firefox should also 
just work for Webkit (GtkLauncher ). For Webkit,  I have only replaced the 
header files that I had for Firefox with the ones available in path: 
WebCore/plugins/

-rw-r--r-- 1 souvik souvik 29209 2012-03-15 19:36 npapi.h
-rw-r--r-- 1 souvik souvik 11899 2011-09-27 02:25 npfunctions.h
-rw-r--r-- 1 souvik souvik 16392 2011-09-27 02:25 npruntime.h
-rw-r--r-- 1 souvik souvik  3846 2011-09-27 02:25 nptypes.h


________________________________________
From: Sergio Villar Senin [svil...@igalia.com]
Sent: Thursday, March 15, 2012 10:14 PM
To: Souvik Datta (WT01 - PES-Auto-Practice)
Subject: Re: [webkit-dev] NPAPI plugin crashes while calling npnfuncs->invoke 
in GtkLauncher

En 15/03/12 17:32, souvik.da...@wipro.com escribiu:
> Actually that argument is not used and is purposefully sent as NULL. Please 
> find the source code:
>
> Please find the source code:
>
> The following function is handler passed to : 
> npnfuncs->pluginthreadasynccall(savedinstance,threadImplementation,NULL); 
> <==== This NULL is  *msg

Just a question, are you using threads in your NPAPI plugin? Because the
NPAPI is not thread-safe, so you cannot call back the browser in a
different thread than the one used by the browser to communicate with
your plugin.

BR


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
_______________________________________________
webkit-help mailing list
webkit-help@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to