views:

53

answers:

3

I am working on a firefox extension. The problem is if I make any change in it, I need to close and then re-open firefox browser to see the changes . Is there any way I can see those changes by just refreshing the page ?

+3  A: 

You might want to try the Restart Firefox plugin to see if that improves your experience.

tvanfosson
That's what I do for changes in overlays. Also if your changes are not made in the main window (browser.xul) but in, for example, a sidebar (or a dialog, another window, etc) and you disabled xul cache (nglayout.debug.disable_xul_cache = true) in the preferences, you can just open and close the sidebar to reload.
fms
A: 

For the most part, no.

If you're just editing the XUL then you can test different things by using the DOM Inspector to edit/insert/delete elements and properties to see what they will look like without restarting Firefox. You can also use the JavaScript console to test some JavaScript. I've found these things to be a big time saver when developing extensions, but anytime you make a change to the extension code itself you will need to restart Firefox.

Gerald
A: 

I use the Extension Developer Extension for this. There is a "Reload Chrome" button that will do exactly that. It won't alter the browser interface, though, so I generally navigate to my extension's chrome:// URL in a browser window. When I have made significant changes and am ready to test the real extension again, then I'll restart Firefox.

AdmiralNemo