We recommend that you use the add-ons SDK, which generally abstracts all interaction with XUL. If you can use HTML in your add-ons, it’s best that you do that. XUL has been part of Firefox since the start, but it’s showing its age and it may go away eventually.