We help IT Professionals succeed at work.

Developing Firefox Extension Without Restarting Firefox Everytime?

919 Views
Last Modified: 2013-12-07
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?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2006

Commented:
http://kb.mozillazine.org/Extension_development

Scroll down to Setting up your environment section.

Author

Commented:
What is the short answer without having to read all this?
CERTIFIED EXPERT
Top Expert 2006

Commented:
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

Author

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....
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

Author

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.

Author

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.
CERTIFIED EXPERT
Top Expert 2006
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.