Axel Hecht wrote:
Hi,
I was just running into a problem with files without extension having no content type. The doc-loader sniffs for the mimetype, so once you look at the file in the browser, it comes up ok.
But many other paths, like the XML parser, don't and at least the parser even locks up.
Stepping thru the code, I saw a nice little point inside nsExternalHelperAppService,
http://lxr.mozilla.org/seamonkey/source/uriloader/exthandler/nsExternalHelperAppService.cpp#2267


where one could insert content sniffing for file://.

Opinions?

Axel



Another option would be to have necko automagically wedge an instance of nsUnknownDecoder between the file channel and its listener. This is already done for HTTP (and elsewhere i think). BZ might even have a bug filed about doing this. Would be good to talk to sync up with him on this issue.

Darin


Reply via email to