Questions tagged [browser-plugin]

Browser-plugins allow to display content in browsers that they don't support natively. The two major APIs are NPAPI (supported by all browsers except Internet Explorer) and ActiveX (for so called content extensions for Internet Explorer).

Browser-plugins allow to display content in browsers that they don't support natively. They are usually written in C++ or C. The three major APIs for browser-plugins are:

  • W3C Web-extension is a cross-browser system for developing browser add-ons, supported by Chrome, Opera, Firefox and Edge
  • NPAPI, supported by all browsers except Internet Explorer
  • ActiveX, for so called content extensions for Internet Explorer

Specific browsers may support additional APIs, like WebKit Plugins on OSX.

272 questions
0
votes
1 answer

NPP_New not getting called in few webpages (Chrome and Safari)

I am trying to access NPAPI plugin from content/inject script of Chrome/Safari extensions. The code to embed the plugin object and access methods. var newElement = document.createElement("embed"); newElement.id = "myPluginID"; newElement.type =…
0
votes
1 answer

How cast HWND to NSWindow * in FireBreath?

Is there any way to cast HWND FB::PluginWindowWin::getBrowserHWND to NSWindow *? The reason why I need this, is to interact with Browser window, from my Cocoa app for OSX, (like open sheet on it,etc..). If there is no way, how else it can be done,…
User1234
  • 2,362
  • 4
  • 27
  • 57
0
votes
1 answer

Inject JS file from FireBreath plugin?

I have FireBreath plugin, and some JS file in it. What I'm trying to do, at some point , inject that JS file using plugin. How is it possible to inject that js file using plugin? If you can please provide example, I'm new at it. I need same behavior…
User1234
  • 2,362
  • 4
  • 27
  • 57
0
votes
2 answers

best way to handle read-/write-only properties in scriptable browser-plugin

Writing a embeddable cross-browser plugin that is scriptable via JavaScript i am unsure how to handle read-only and write-only properties the best way. Is it more common or intuitive to discard values silently on write for read-only and return…
Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236
0
votes
2 answers

MIMEType association incorrect for FireFox?

I'm working with an existing ActiveX control, we have a NPAPI for it, and it works well for the most part in FireFox. It supports viewing image types, one type, TIFF works well but for some reason JPG doesn't. So I simplified MIMEType in my .rc file…
JosephA
  • 1,187
  • 3
  • 13
  • 27
0
votes
1 answer

Figuring out why Flash (Firefox plugin) uses 100% CPU on recursive NP_Initialize

Like many people before myself, I'm having problems with Flash bringing down an entire CPU core (specifically, one of the threads is always using up 100% CPU). Flash is probably running on more than 1 page (I'm using a lot of tabs), but what seemed…
Dan
  • 3,490
  • 2
  • 22
  • 27
0
votes
1 answer

Use official flash plugin to present a swf file

I want to show a flash file (.swf) in my executable program on Windows. Every single modern browser are able to do it by using the official flash plugin DLL by Adobe. But there's no documentation anywhere of HOW you do it! For years I've searched…
0
votes
1 answer

multiple expected identifier or '(' before ':' token when compiling android_npapi.h file

As stated above the android_npapi.h provides multiple errors of the above type at this point: struct ANPInterface { uint32_t inSize; // size (in bytes) of this struct }; enum ANPLogTypes { kError_ANPLogType = 0, // error …
harshalizee
  • 129
  • 1
  • 3
  • 12
0
votes
1 answer

access firefox about:config property from a web page

It's possibile to access (in read-only mode) to a value stored in a "about:config" property from an "unprivilegied" (as in: loaded from a http:// ... /something.html) script? More specifically, I see the next ff (19?) will enable by default the…
Vito De Tullio
  • 2,332
  • 3
  • 33
  • 52
0
votes
1 answer

Initializing NSS using Certificate DB

I am writing a NPAPI plugin, from which i need to access firefox certificate store. I have included the Gecko SDK and i want to initialize NSS with the default certificate DB. I am unable to find on how to obtain the certificate DB path…
Buzz LIghtyear
  • 480
  • 5
  • 16
0
votes
1 answer

Modifying browser plugin list from cocoa app

I am trying list and modify the browser's navigator.plugins from a Cocoa application on OS X. I did not find a way to list the plugin list installed on OS X. On Windows I am able to check the registry and modify it. Any leads are greatly…
Prakash
  • 823
  • 12
  • 28
0
votes
1 answer

does NPP_Write processes content before delivering it to plugin instance?

The code below should be self explanatory NPP_PostURLNotify() //post to a URL that returns a pure java script code NPP_WriteReady() NPP_Write() // when the browser calls back this function does it execute that java script before calling this…
0
votes
2 answers

NPAPI plugin can work on mac10.8 but not mac10.6

I develop a npapi plugin on mac10.8 with xcode4.5 and the Gecko SDK is Gecko 17.0(mac i386). The plugin can work on mac10.8 but not mac10.6,I don't what problem with it。somebody can tell me what can i do and how to solve the problem.The plugin on…
0
votes
2 answers

.EXE in .CAB can not install from Win7, IE8

I have made a browser plugin and tried to deploy it from a .cab file in IE. And it's per-user install. My problem is in Windows XP, The installation works well in different users. However, in Windows 7, when open the page including the .cab, the…
Michael Bai
  • 586
  • 1
  • 4
  • 13
0
votes
1 answer

NPAPI plug-in call javascript function?

is there any way the NPAPI plug-in call the function in JS? if yes,please give me an example.By the way,my plug-in is running on safari. Thanks very much.
Magical
  • 263
  • 3
  • 10