Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows Firefox does not find my plugin

22 views
Skip to first unread message

Rudi Sherry

unread,
Sep 17, 2012, 3:47:18 PM9/17/12
to dev-tech...@lists.mozilla.org
I'm building a skeleton NPAPI plugin to test specific functionality and I cannot get Firefox to see it. I'm on a 64-bit Windows 7 machine.

I have added:

HKLM\SOFTWARE\Wow6432Node\MozillaPlugins\PluginBug
(Default) REG_SZ (value not set)
Description REG_SZ "Test"
Path REG_SZ <path-to-my-plugin>\npPluginBug.dll
ProductName REG_SZ PluginBug
Version REG_SZ 1.0.1
Vendor REG_SZ Me
HKLM\SOFTWARE\Wow6432Node\MozillaPlugins\PluginBug\MimeTypes\application/vnd.pluginbug

... it doesn't appear in Add-ons Manager, nor in "about:plugins".

Using Process Monitor, I compared how firefox looked for all plugins; for each plugin (including mine) firefox queried the directory containing it to get a directory listing. For each (including mine), the listing included the plugin.

But for each of the others, after the QueryDirectory finished, firefox called "CreateFile" with Open/Read... but for mine, after the QueryDirectory finished, it called "QueryOpen" (result SUCCESS).

Why this difference?

I've verified with CFF Explorer that I'm exporting NP_Initialize, NP_GetEntryPoints and NP_Shutdown.

AFAIK nothing else has my plugin open.

I deleted pluginreg.dat and tried again, with no success.

I restarted... same.

First, assuming I spelled everything correctly, is there something I missed? I'm typing this in manually so might have fat-fingered something in this email.

Thanks,
Rudi

Benjamin Smedberg

unread,
Sep 17, 2012, 4:15:42 PM9/17/12
to Rudi Sherry, dev-tech...@lists.mozilla.org
On 9/17/2012 3:47 PM, Rudi Sherry wrote:
> I'm building a skeleton NPAPI plugin to test specific functionality and I cannot get Firefox to see it. I'm on a 64-bit Windows 7 machine.
>
> I have added:
>
> HKLM\SOFTWARE\Wow6432Node\MozillaPlugins\PluginBug
> (Default) REG_SZ (value not set)
> Description REG_SZ "Test"
> Path REG_SZ <path-to-my-plugin>\npPluginBug.dll
> ProductName REG_SZ PluginBug
> Version REG_SZ 1.0.1
> Vendor REG_SZ Me
> HKLM\SOFTWARE\Wow6432Node\MozillaPlugins\PluginBug\MimeTypes\application/vnd.pluginbug
I suspect that there is nothing wrong with the registry entries. What's
more interesting to Firefox is the data built into the resource entries
of the DLL. Specifically I noticed that when I was making my own
testplugin version that I needed the resource to be in a specific
language/codepage:

https://github.com/bsmedberg/blue-fishmonger-testplugin/blob/master/bsmedberg-testplugin/testplugin.rc

VALUE "Translation", 0x409, 1252

was necessary, and the default provided by the Visual Studio wizard was '1200' not '1252'.

--BDS

Rudi Sherry

unread,
Sep 17, 2012, 6:04:48 PM9/17/12
to Benjamin Smedberg, dev-tech...@lists.mozilla.org
Thanks! That was it, that was not obvious to me ;)
0 new messages