I writing a new protocol hander and everything works very well except
for a couple of scenarios. The protocol basically render images from
memory / resource files and that works.

The problem occurs when I drag a html document from the desktop into
the browser which contains attribute that utilize my protocol (e.g,
src="abc:someimage" ). "NewURI" will be called for each of the
elements that utilize the custom protocol handler as expected however
it will not be follow by a call to "NewChannel" thus I wont get a
chance to fetch data.

Why is NewChannel not being called? Is there a way to get this up and running?

The same code works fine if I type "abc:samedoc.html" in the address
bar, then it will grab the document from the resource file and render
it correctly including images that includes the src="abc:someimage".
My protocol handler inherits from "nsIProtocolHandler"

Any pointers would be great..
-J
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to