Developing Firefox Extension Without Restarting Firefox Everytime?

I'm reading up on XUL, XBL, etc and am about to start writing a FF extension. It seems that in order to do this, you need to restart firefox everytime. Is there a way to not have to do this? Also, can I load the XUL/XBL files manually in the browser without having to package it in a xpi file?
dignifiedAsked:
Who is Participating?
 
amit_gCommented:
1) Yes
2) No need while development and testing
3) No need while development and testing
4) Yes

Read the "Test" section of http://developer.mozilla.org/en/docs/Building_an_Extension for exact steps. Also make sure to setup an environment given in section " Setting up the Development Environment". In fact if you follow the steps given one by one, you will end up with a very basic working extension.


Once you are comfortable, you can also use wizard to create a skeleton http://ted.mielczarek.org/code/mozilla/extensionwiz/
0
 
amit_gCommented:
http://kb.mozillazine.org/Extension_development

Scroll down to Setting up your environment section.
0
 
dignifiedAuthor Commented:
What is the short answer without having to read all this?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
amit_gCommented:
If you really are serious about development of extensions, you need to read it all especially the link "Getting started with extension development". The shorter version is http://developer.mozilla.org/en/docs/Setting_up_extension_development_environment
0
 
dignifiedAuthor Commented:
yes, I am going to read all of it, and I am reading it right now.

nglayout.debug.disable_xul_cache = true I see this will stop you from refreshing by setting this in the about:config, however, I don't see this option available....
0
 
basicinstinctCommented:
you can add new values, in about config just right click and select "New" then "Boolean" and then call it nglayout.debug.disable_xul_cache and set it to true
0
 
dignifiedAuthor Commented:
Alright, so I'm having a little bit of trouble getting started. I have followed this example http://kb.mozillazine.org/Getting_started_with_extension_development and created the same directory structure inside ~/.mozilla/firefox/z8mp9yr3.default/extensions/helloworld/

I have restarted firefox and I don't see the example anywhere. I don't see it in any of the menus.
0
 
dignifiedAuthor Commented:
So I have read a lot on xul and stuff. I found that the extension wizard extension is quite useful in that it allows me to create a xpi file that can be installed. But I am still a little confused as to how I can make a minor change to my code and then easily load it into the browser.

I am guessing:

1) make changes to code
2) create new xpi using extension wizard
3) using TOOLS -> ADD ONS ..... Find Updates (hopefully not uninstall then reinstall)
4) Restart firefox, but hopefully I shouldn't have to as long as I have nglayout.debug.disable_xul_cache = true, however, it seems that setting this variable has no effect.


I'm having trouble figuring out how to create a new profile so that I can restart just the instance of mozilla using my development profile.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.