files/en-us/mozilla/firefox/releases/7/updating_extensions/index.md
This article offers advice for add-on developers that want to update their extensions to work in Firefox 7. Fortunately, most of the changes are relatively minor in this release, and few add-ons should need significant changes to work in Firefox 7.
[!NOTE] For a complete list of developer-related changes in Firefox 7, see Firefox 7 for developers.
As always, you will need to recompile any binary components to make them compatible with Firefox 7.
Most of the changes in this release are XPCOM interface removals, or removals of specific, obsolete APIs from interfaces.
The following interfaces are the ones that were removed that will most likely impact extension developers:
nsIDOM3NodensIDOM3TypeInfoschemaTypeInfonsIDOMNSDocumentnsIDOMDocumentStyleYou can get a complete list of the removed interfaces in the Removed interfaces section of Firefox 7 for developers.
A few interfaces have methods that have been changed:
nsINavHistoryObserver and nsINavBookmarkObserver
nsIDOMFile
File.getDataAsUrl() and File.getAsBinary() methods. However, this functionality can now be found in the standard {{ domxref("FileReader") }} object.These changes won't affect compatibility (we weren't kidding when we said there weren't many changes that do in this release), but do add capabilities that are easy to take advantage of that might be of special use to you.
The new Components.utils.unload() method lets you unload JavaScript code modules previously loaded by calling Components.utils.load(). This can be particularly handy with restartless (bootstrapped) extensions, so that you can unload an old version of a code module when a new version of your add-on is installed.
You can now have preference options inline in the Add-on Manager window, which lets users configure your add-on without having to open a separate preference dialog box. There are limits to what types of configuration controls can be provided, but this is still very helpful — plus it works for restartless (bootstrapped) extensions.