Hi,

I'm trying to create a protocol handler for the 9P2000 protocol as an
extension to Firefox. I've gotten as far as parsing all URI's
beginning with ninep:// ( Unfortunately, 9p:// doesn't seem to be a
valid scheme :-( ) and I'm now stuck at the newChannel()
implementation.

>From what I could gather from the documentation here and there
(besides the name of the method), newChannel() is supposed to return a
channel. Most of the extensions I've seen simply create a new HTTP
channel and return it, but I can't do that since there is no HTTP URL
that I can "redirect" to. All the content has to be generated in the
newChannel() method itself.

What I'm basically trying to do is to allow users to get/put/edit/
delete files served by a 9P server. That means my ultimate output
would be some sort of interface that allows you to do that (probably
just a HTML page generated on the fly?). Hence, when the user types
ninep://example/file into the address bar, I want to display the
contents of the file, but if it's a directory, I show a listing
instead.

Onto the real question: Is it possible for me to generate some HTML
+JavaScript on-the-fly and somehow put it into a "channel" and return
it from newChannel() so Mozilla can display that page for me?
Generating the content is not the real problem (I'm already able to
connect via sockets and get everything I need), I'm confused about
what to do with it.

Any pointers would be appreciated.

Best Regards,
--
Anant

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

Reply via email to