Package: libxul-common
Version: 1.8.0.9-1
Severity: normal

Hi,
this code in a xulrunner application: 

var mimeServ = 
Components.classes["@mozilla.org/mime;1"].getService(Components.interfaces.nsIMIMEService);
alert(mimeServ.getPrimaryExtension("application/pdf", null));

throws NS_ERROR_NOT_INITIALIZED in debian xulrunner, but alerts "pdf" in
a mozilla xulrunner.

I think this is because nsGNOMERegistry::GetFromType is called in 
nsOSHelperAppService::GetFromType as a default solution.

But with GList *extensions = _gnome_vfs_mime_get_extensions_list(aMIMEType);
I get a null pointer, so no extension is registered for that mime type.

Therefore in nsMIMEInfoBase::GetPrimaryExtension
if (extCount < 1) return NS_ERROR_NOT_INITIALIZED;
throws an exception

arno.


PS: I'm not sure wether this bug is for libxul0d, libxul-common or
another package.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-486
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to