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

Missing plugins when test plugin example: npruntime

4 views
Skip to first unread message

Xiexin

unread,
Dec 24, 2009, 7:41:16 AM12/24/09
to dev-apps...@lists.mozilla.org
Hi all, I'm new to XPCOM, I don't know does this list is right for ask the
XPCOM development or not.

I downloaded Firefox 3.5 source code and compiled the npruntime
example(firefox-3.5.6.source\mozilla-1.9.1\modules\plugin\sdk\samples\npruntime)
as the guide that at
https://developer.mozilla.org/En/Compiling_The_npruntime_Sample_Plugin_in_Visual_Studio

And I can see the npruntime plugin is installed by use firefox open
about:plugins

But when I open the test.html to test the plugin, the firefox says missing
plugins and the buttons do
not working

I'm open the test.html, I found here has a line:
<embed type="application/x-java-mozilla-npruntime-scriptable-plugin"
style="display: block; width: 50%; height: 100px;">

If I commented it, the "missing plugin" message does appears on longer, but
the buttons still not working,
I think I must install x-java-mozilla-npruntime-scriptable-plugin, but where
can I download it?

Thanks

Benjamin Smedberg

unread,
Dec 24, 2009, 1:21:23 PM12/24/09
to
On 12/24/09 7:41 AM, Xiexin wrote:

> I'm open the test.html, I found here has a line:
> <embed type="application/x-java-mozilla-npruntime-scriptable-plugin"
> style="display: block; width: 50%; height: 100px;">

As far as I can see, the MIME type for the plugin at sdk/samples/npruntime
is application/mozilla-npruntime-scriptable-plugin, not
application/x-java-amozilla-npruntime-scriptable-plugin. See
http://mxr.mozilla.org/mozilla-central/source/modules/plugin/sdk/samples/npruntime/npp_gate.cpp#45
and
http://mxr.mozilla.org/mozilla-central/source/modules/plugin/sdk/samples/npruntime/nprt.rc#56

--BDS

Xiexin

unread,
Dec 24, 2009, 9:14:49 PM12/24/09
to Benjamin Smedberg, dev-apps...@lists.mozilla.org
I have solved this issue, thank you Benjamin.
When I create the DLL project, I forgot set the .def file into project
setting.
Thanks

> _______________________________________________
> dev-apps-firefox mailing list
> dev-apps...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-apps-firefox
>

0 new messages