Subj : Registering a MIME type handler in Mozilla's autoconfig To : netscape.public.mozilla.xpcom,netscape.public.mozilla.jseng,netscape.public.mozilla.xpfe From : ALBANI damiano Date : Fri Jul 30 2004 01:12 pm Hello, I am trying to use the autoconfig feature of Mozilla to register new MIME handlers at browser *startup*. To avoid duplicating code, I am using the logic from "chrome://communicator/content/pref/overrideHandler.js", the one used by the preferences panel dealing with helper applications. However, as there's no 'include' or 'import' feature in JavaScript, I have to fetch the file and then eval() the code. I also took the glue code from "http://lxr.mozilla.org/seamonkey/source/xpfe/components/prefwindow/resources/content/pref-applications-new.js#106" onwards. I can successfully create a HandlerOverride object, but any call on the setter/getter of this class fails (silently unfortunately). Where could this come from ? What is strange is that this process works in a