Q:

How to incorporate XUL based plugin into an SDK based plugin? 

I have a plugin build with the Addon SDK that manipulates HTTP requests and another one that manipulates the DOM but is build in the bootstrapped(XUL) way. 
Basically I have to incorporate the bootstraped plugin into the SDK based plugin to combine their functionality but without making too many changes to the XUL based plugin. 
Is there any way to this without a massive rewrite of any of them? 

A:

bootstrapped add-ons are very similar but far more chaotic, it'll be worth organizing your code if you plan to maintain it, and the sdk provides a sane test framework.