On 20 Feb., 00:07, Christian Biesinger <[EMAIL PROTECTED]> wrote:
> fi wrote:
> > I implemented an nsIContentHandler for the content type x-application-
> > xyz.
>
> Was that the exact string? Because if a content type doesn't contain a
> slash, the networking code treats it as malformed and ignores it. It
> probably ends up using text/plain for that content.
>

Well, to be shure it is not the content type, I tried the following
two, literally:

x-application-xyz

x-application-jsfxul

I registered the component under the ID

@mozilla.org/uriloader/content-handler;1?type=x-application-xyz

and a corresponding string for the second content type. I thought this
is correct, because I found two examples in the source code doing just
that, i.e. using a content type without a slash. So I will try

application/x-application-xyz

and see, if it is working now.

Thanks for this help,

- Andreas


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to