dignified
asked on
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?
ASKER
What is the short answer without having to read all this?
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
ASKER
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....
nglayout.debug.disable_xul
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
ASKER
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/z8mp9yr 3.default/ extensions /helloworl d/
I have restarted firefox and I don't see the example anywhere. I don't see it in any of the menus.
I have restarted firefox and I don't see the example anywhere. I don't see it in any of the menus.
ASKER
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.
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
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Scroll down to Setting up your environment section.