Comment 15 for bug 867753

Revision history for this message
In , Dtownsend (dtownsend) wrote :

The startup method is called early in startup, before chrome for non-restartless add-ons is registered. That is the problem here.

There are really only two solutions. One is to move the startup call to later in startup, the other is to have JSONovich fixed so it doesn't initialize nsHttpHandler until later in startup. The former has the potential to break existing add-ons as well as potentially make it harder to do certain tasks so I'd tend to side with just notifying the JSONovich author and leaving this as-is.

I would note that while startup() is called early it is still much later than non-restartless add-ons used to be able to be called, they could hit exactly the same problem if they weren't careful about delaying things they did to later in startup.