GSoC2k9 - Torbutton Feature Fulfillment - Kory Kirk
Part 1: The plan 
Thursday, May 28, 2009, 03:21 PM
Posted by Administrator
Rough start, as I have been extremely busy with non-GSoC stuff the past few days, had to move out of my house and take care of some other stuff. But luckily from the depths of that business came the outline of the development plan for the feature that I am going to implement in Torbutton. That is the tor:// protocol association.

In order to do this, I am going to utilize the XPCom interface NSIProtocolHandler. Which is Mozilla's way of incorporating a protocol into its framework. So first of all I need to create a component that implements this interface.It seems I will only have to implement 3 methods from NSIProtocolHandler - newURI(), newChannel(), allowPort(). The implementation of this object seems pretty straight forward.

I will then make an observer to take action anytime the tor:// protocol is called. When it is called, we are going to have a dialogue box come up for confirmation. If the user says that it is okay to enable tor, then tor will start up, and after it has been enabled the extension will request and view the uri.

This is just a brief outline, and I imagine there will be many unforeseen complications - I will be filling in the gaps as I go along.

1 comment ( 24 views )

<<First <Back | 1 | 2 | Next> Last>>