Mime types registration problem

David Faure dfaure at klaralvdalens-datakonsult.se
Fri Mar 14 20:09:09 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 14 March 2003 19:03, Robin Rosenberg wrote:
> I have a problem with mime-types in javascript. Why doesn't konqueror list some 
> mime types in navigator.mimeTypes
> 
> This is the content of the .desktop file. Konqueror finds and can use the mime 
> type just fine, but it does not show up javascript. 
> 
> On the system (Mandrake 9.0 plus KDE 3.1 from cooker) there about two hundred 
> mime-types, but the navigator.mimeTypes only contains 81 entries. Running as 
> another user (su) I get no types. and on a Mandrake 9.0 I get 183 types. 

Only the mimetypes for which there is a NS plugin are listed.
This doesn't include the Java mimetypes, since Java isn't handled as a NS plugin
by Konqueror, but directly using a JVM.

> The reason I'm asking is that Sun's example code for Java Webstart uses JavaScript to
> see if WebStart is installed and it does this by checking the navigator.mimeTypes array.

Hmmm... this assumes a java plugin, which is wrong IMHO.

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+cjbl72KcVAmwbhARApNmAJ4koab8A0LLQ25Xj6N5lE31S3mO5gCdEyeR
pxg9Qv+BIIDWPhdTDKCFQWI=
=uV6B
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list