[Mozplugger] Are APPLET and OBJECT tags supported
Peter Leese
peterleese at lineone.net
Wed Jan 23 11:51:56 PST 2008
Hello Alexey,
On Wed, 23 Jan 2008 20:54:34 +0300
"Alexey Petrenko" <alexey.a.petrenko at gmail.com> wrote:
> Looks like I'm doing something wrong but I can not get any reaction of
> mozplugger :(
>
> What I have done:
> 1. I've rebuilt mozplugger with BUILD=DEBUG option
> 2. Created the following mozpluggerrc:
> === cut ===
> application/x-java-applet;jpi-version=1.5:class:Java Applet 1.5
> : /<absolute path>/harmony/target/hdk/jdk/bin/java -classpath
> /<absolute path>/mozplugger ParamsList
> === cut ===
Looks OK (I assume in the email you used <absolute path> to mask the real
path that you used in the mozpluggerrc)
> 3. Restarted FireFox.
>
> "about:plugins page: reported that mozplugger is loaded and
> "application/x-java-applet;jpi-version=1.5" type is supported by it.
Yes, great that looks like the mozpluggerrc has been read correctly.
> 4. I've loaded a page with applet to the browser. This page contains
> object tag with exact specification of
> "application/x-java-applet;jpi-version=1.5" type.
Can you be more specific - That is can you send me the actual HTML source code
so I can see what firefox sees.
> However, there was no reaction from mozplugger. Here is a mozdebug file:
> === cut ===
> PID3881: GetMIMEDescription
> PID3881: do_read_config
> PID3881: find_helper_file 'mozpluggerrc'
> PID3881: READ_CONFIG(/home/<user>/.netscape/mozpluggerrc)
> PID3881: READ_CONFIG(/home/<user>/.mozilla/mozpluggerrc)
> PID3881: read_config
> PID3881: ::: application/x-java-applet;jpi-version=1.5:class:Java Applet 1.5
> PID3881: -------------------------------------------
> PID3881: New handler
> PID3881: -------------------------------------------
> PID3881: New mime type
> PID3881: ::: : /<absolute path>/harmony/target/hdk/jdk/bin/java
> -classpath /<absolute path>/mozplugger ParamsList
> PID3881: New command
> PID3881: Parsing : /<absolute path>/harmony/target/hdk/jdk/bin/java
> -classpath /<absolute path>/mozplugger ParamsList
> PID3881: find(/<absolute path>/harmony/target/hdk/jdk/bin/java)
> PID3881: Num handlers: 1
> PID3881: find_helper_file 'mozplugger-helper'
> PID3881: find(mozplugger-helper)
> PID3881: stat(/usr/bin/mozplugger-helper)
> PID3881: yes
> PID3881: find_helper_file 'mozplugger-controller'
> PID3881: find(mozplugger-controller)
> PID3881: stat(/usr/bin/mozplugger-controller)
> PID3881: yes
> PID3881: do_read_config done
> PID3881: Size required=64
> PID3881: Malloc did not fail
> PID3881: Getmimedescription done:
> application/x-java-applet;jpi-version=1.5:class:Java Applet 1.5
> PID3881: Getvalue 1
> PID3881: GET Plugin name
> PID3881: Getvalue 2
> PID3881: GET Plugin description
> === cut ===
That all looks correct...Was there more in the mozdebug file or is that
it. If that was all there was in the file, then conclusion is that
firefox never called mozplugger to handle the applet.
Aside: Could you send me the version numbers of firefox
and mozplugger that you are using...
> Is there any ideas what am I doing wrong?
Several thoughts come to mind -
(a) The HTML code is not correctly formed (please send me HTML source
code so I can check this out)
(b) Firefox calls some other plugin (can you check you only have one
plugin for this mime type)
(c) Firefox doesnt associate the APPLET object to mozplugger. Firefox
does the mapping in several ways including looking at the HTTP content-type
field when it requests the object. It then decides which plugin to invoke or
none if none available for the mimetype in question.
(d) Perhaps (unlikely) Firefox does not handle the HTML APPLET tag - After all
the APPLET tag is deprecated in the latest HTML standards
(e) A bug somewhere...
regards Peter
More information about the Mozplugger
mailing list