[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:16:25 PDT 2012


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


More information about the webkit-help mailing list