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?
Detect if plugin is running
Moderators: FranklinDM, Lootyhoof
Detect if plugin is running
Last edited by Pelican on 2018-08-14, 01:51, edited 1 time in total.
Re: Detect if plugin is running
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).
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Detect if plugin is running
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
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.
Last edited by Moonchild on 2018-08-14, 06:51, edited 1 time in total.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite