[webkit-help] NPAPI plugin crashes while calling npnfuncs->invoke in GtkLauncher
souvik.datta at wipro.com
souvik.datta at wipro.com
Fri Mar 16 02:26:53 PDT 2012
npn_invoke returned 0.
The func() is a java script function which receives the string (in this case - "Hello from wcfplugin......") passed to it from the plugin-in
and display in an alert.
Just to make sure that the JavaScript code is correct, I have changed "document" to "content" and ran it on firefox.
I am getting an alert with - "Hello from wcfplugin......"
________________________________________
From: Yani, Ivan [IYani at luxoft.com]
Sent: Friday, March 16, 2012 2:51 PM
To: Souvik Datta (WT01 - PES-Auto-Practice)
Cc: webkit-help at lists.webkit.org
Subject: RE: [webkit-help] NPAPI plugin crashes while calling npnfuncs->invoke in GtkLauncher
Why do you think so? Did npn_invoke returned false? Where did you expect the string to appear? Maybe it's a javascript function that is incorrect.
-----Original Message-----
From: souvik.datta at wipro.com [mailto:souvik.datta at wipro.com]
Sent: Friday, March 16, 2012 11:16 AM
To: Yani, Ivan
Cc: webkit-help at lists.webkit.org
Subject: RE: [webkit-help] NPAPI plugin crashes while calling npnfuncs->invoke in GtkLauncher
I tried using : id = npnfuncs->getstringidentifier("document"); in GtkLauncher
Although this time there was no segmentation fault, but the string "Hello from wcfplugin......" did not print either.
It seems "func" is not found.
Regards,
Souvik
________________________________________
From: vanuan at gmail.com [vanuan at gmail.com] on behalf of Vanya Yani [iyani at luxoft.com]
Sent: Friday, March 16, 2012 2:08 PM
To: Souvik Datta (WT01 - PES-Auto-Practice)
Cc: webkit-help at lists.webkit.org
Subject: Re: [webkit-help] NPAPI plugin crashes while calling npnfuncs->invoke in GtkLauncher
On 16 March 2012 09:08, <souvik.datta at wipro.com> wrote:
> Hello Vanya,
>
> I absolutely agree with you that we should check for NULL in very function call.
You should also check the return value of NPN functions.
> We actually wanted window.content and not window.console. There is a Java script function named "func()" which is present in the html page (i.e, in window.content)
> Therefore, Firefox behavior is correct. It is calling the "func" of "window.content".
It's not correct. It's non standard.
As you can see here: https://developer.mozilla.org/en/DOM/window.content
it is not part of any W3C specification.
Available window object properties are:
http://www.w3schools.com/jsref/obj_window.asp
I think you should try window.document
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
This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you.
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
More information about the webkit-help
mailing list