Page 1 of 1

Detect if plugin is running

Posted: 2018-08-13, 22:42
by WilliamK
Our custom browser supports a couple of NPAPI plugins and we would like to detect if those plugins are running so that we can accommodate them better.

We considered detecting if their Object tags or mimetype were found in the HTML but because some users inject the object tag using JavaScript that makes it too late... after the page loads.

So I am wondering if via the plugin container or whatever, can PM detect if a plugin is running by DLL name or mimetype?

Re: Detect if plugin is running

Posted: 2018-08-14, 04:36
by Moonchild
You can check which plugins are enabled with navigator.plugins -- whether they are actually loaded at any point in time depends on web content requests (and they are unloaded after a set idle time to reduce resource usage).

Re: Detect if plugin is running

Posted: 2018-08-14, 05:58
by WilliamK
Yes navigator.plugins will tell if they are installed/enabled, but I need to know when are being used... start to finish.

Re: Detect if plugin is running

Posted: 2018-08-14, 06:50
by Moonchild
You'll probably have to write an interface for that then to expose the internals of the plugin host. There is no standard way to query this AFAIK, because it is offloaded to the platform internals.