Questions tagged [npruntime]

29 questions
2
votes
1 answer

Basic Plugin (NPAPI / npruntime) Hello world

Backgound steps Used Mozilla code from here: http://mxr.mozilla.org/seamonkey/source/modules/plugin/tools/sdk/samples/basic/windows/ New Empty Project in Visual Studio & added above files Changed Congfiguration Type : Dynamic Library (.dll) 3b.…
hapyfishrmn
  • 177
  • 2
  • 21
2
votes
0 answers

Calling java applets via NPAPI / NPRuntime in Chromium

I found this bug: http://code.google.com/p/chromium/issues/detail?id=580#c69 stating that Chromium doesn't support LiveConnect. One of the developers responded with We don't ever intend to support LiveConnect in Chrome. The newest version of…
Matt Wonlaw
  • 12,146
  • 5
  • 42
  • 44
2
votes
1 answer

How come NPRuntime require xpt file?

I am trying to make sense of whatever I learned about NPRuntime. Here is a example of NPRuntime plugin from from mozilla-central of NPRuntime plugin, which mentions following lines // ============================== 145 // ! Scriptability related…
Xinus
  • 29,617
  • 32
  • 119
  • 165
1
vote
1 answer

Problem passing non-ASCII string to NPN_Invoke

My plugin calls JavaScript function using NPN_Invoke, passing a string argument to it. Everything works fine if all characters in it are ASCII. But if there're non-ASCII characters in the string, then JavaScript receives an empty string. I verified…
rincewind
  • 1,103
  • 8
  • 29
1
vote
1 answer

how to test my npapi code i.e xpcom to npruntime changes for my firefox plugin?

I have updated my firefox plugin to work with latest versions of firefox (3.6 and higher) by moving from xpcom to npruntime. While doing this I have written several wrappers and the only way to test my code seems to be through javascript. Could…
mohit
  • 105
  • 1
  • 8
1
vote
1 answer

XPCOM Plugin Support on FF 3.5+

I have got a plugin which is basically an IE equivalent ActiveX control, that supports scripting. I'm using the IDL file & XPCOM Glue in my Plugin - this works fine upto FF 3.5. Apparently as I read from several places that XPCOM support for plugins…
atVelu
  • 815
  • 1
  • 12
  • 24
1
vote
1 answer

Why does my simple test NPObject not work?

I have this getValue method + NPclass methods: static bool hasmethod(NPObject *npobj, NPIdentifier name) { return true; } static NPObject* allocate (NPP npp, NPClass *aClass) { return browser-> createobject(npp, aClass); } static bool…
PendingVegan
  • 137
  • 3
  • 16
0
votes
1 answer

Best way to develop OS free npruntime plugin

I'm going to implement a npruntime plugin which will work on Chrome, Mozilla FF(windows/mac) and Safari(windows/mac). That plugin can draw images and will have some UI control. I don't want to re-program the plugin for each OS platform if…
JayMuzie
  • 341
  • 1
  • 4
  • 16
0
votes
1 answer

npruntime plug-in installation

i made a simple html page that includes npruntime plug-in and it works fine locally. of course npruntime object file(npmyapp.dll) has been already registered so browser can load plug-in. (loading plug-in code is something like ..)
JayMuzie
  • 341
  • 1
  • 4
  • 16
0
votes
1 answer

chrome newer version(14) does not give a null terminated string as part of NPVariant

chrome newer version(14) does not give a null terminated string as part of NPVariant whereas firefox acts differently and gives a null terminated string. Is that expected ?? What can we do other than extracting a string,allocating memory and add…
mohit
  • 105
  • 1
  • 8
0
votes
1 answer

How to write a secure NPAPI plugin that would interact only with a specific chrome extension?

I want to write a chrome extension that would automatically (without user interaction) read and upload a file from the local storage based on some event. I understand this is not directly possible because of the security model of the web and…
0
votes
2 answers

npapi plugin having issues with firefox 4.0 and later

I have developed npruntime based plugin for firefox/chrome and its working fine with ff3.6/chrome 10,but when i load any other plugin in firefox 4.0 or later after loading my plugin,then firefox hangs i.e if I open gmail after my plugin has been…
mohit
  • 105
  • 1
  • 8
0
votes
2 answers

chrome detecting integer as NPVariantType_Double with npruntime plugin?

I am trying to call a function through javascript via my NPRuntime plugin but when i pass an integer value to a function,chrome detects that as NPVariantType_Double while firefox is taking same as NPVariantType_Int32. Can we do avoid this without…
mohit
  • 105
  • 1
  • 8
0
votes
5 answers

How to develop NPRuntime Plugin on Opera in Mac?

I have recently developed the plugin for web browsers on Mac OS X. Developed by XCode, my bundle located in /Library/Internet Plug-ins. Chrome, Safari, Firefox catch this plugin but Opera doesn't. How can my plugin be caught by Opera?
Hwansoo Kim
  • 286
  • 2
  • 11
0
votes
2 answers

User settings' persistence in NPAPI?

I was wondering, if there's anything in NPAPI, which supports reading/writing user settings? Currently I use XPCOM, but I want to get rid of this code in order to support other browsers than Firefox. I understand I can just read/write the file…
rincewind
  • 1,103
  • 8
  • 29
1
2