[Maf] MAF compatible with IE's mht?

Christopher Ottley xknight at users.sourceforge.net
Fri Nov 4 11:20:37 EST 2005


Robert Staudinger wrote:

>Is that also valid the other way round i.e. mozilla+maf being able to
>open IE generated .mht files?
>  
>
Yep. Once they're not encrypted, have some DRM on them or are generated 
by Office (thereby including a bunch of XML which Mozilla cannot make 
hide nor hair of).


>I see :/
>
>Is that a limitation introduced by mozilla itself or would it be
>viable in the future to hack the extension in a way that would
>seamlessly support .mht files? Skimming the maf website i came across
>making maf the default file format. Maybe if i would tweak mozilla's
>preferences through gtkmozembed that could work?
>
>Hm, maybe it would be easier to use the MAF code directly in my
>application. What's your opinion about having MAF provide a shared
>library that can read and write .mht files?
>  
>

Hmmm. I haven't played that much with embedding Mozilla into anything 
(except a Java-based SWT app I was working on) so I'm not too sure what 
would be possible in the future (not to mention they're doing a whole 
bunch of work for FF 2.0 and 3.0 that I haven't been able to look at). I 
doubt tweaking the preferences would work but feel free to give it a shot.

The core code, that creates and extracts content into and out of the MHT 
encoding, is in javascript XPCOM based libraries (have a gander at 
nsMafMhtEncoder.js, nsMafMhtDecoder.js and nsMafMhtHandler.js). With the 
exception of some bug fixes and optimization, that has been pretty 
stable since the MAF 0.4.x releases. As far as a C++ library is 
concerned, I had considered it, but given my C++ rustiness and my work 
on a ZipWriter XPCOM Component, it wasn't a priority.

Regards,
Christopher.




More information about the Maf mailing list