Gozala/addon-sdk — pull request #2 by dcrewi (2012-07-11 20:54:59+00:00)
Title: merge upstream into protocol handler branch and fix breakage

This branch looked better than your jetpack-protocol library, but it was four months out of date. I want to start playing with custom protocol handlers, so I fixed the breakage. All but one of the protocol handler tests pass now. I can't quite figure out what's going on with the last failure.

I will say that this protocol handler API should almost certainly not be final. There should be a higher-level call for people who just want to define a new protocol without having to remember to create a Service for it. That is not intuitive. All of the tests have a register() function that deals with boilerplate. You wrote it because that function (or something like it) should actually be in lib/protocol/* somewhere.