Search code examples
firefoxfirefox-addonfirefox-addon-sdk

Update Firefox Addon SDK extension files without restart


I am building an extension with Firefox's Addon SDK (v1.10). One of the new features of this SDK is the ability to not require a restart when installing / upgrading extensions.

Problem

I have noticed that, when performing an upgrade or downgrade from my SDK extension to a different version of my SDK extension without requiring a restart, files in the 'data' folder do not get updated until a restart is performed.

Is this a bug from Mozilla's Addon SDK loader?


Solution

  • So, Firefox will not 'reload' moz-binding without a browser restart (thanks @Bryan Clark).

    I ended up completely rewriting my UI implementation to stop using bindings (and xml files) and instead dinamically generate the XUL elements and create what the binding used to describe (in xml) without it.

    This means that when there is an update, I can just dynamically remove any old XUL elements and re-add the new ones.