Firefox 24 will be released on September 17th. Here’s the list of changes that went into this version that can affect add-on compatibility. There is more information available in Firefox 24 for Developers, so you should read that too.
General
- Implement the Browser Console. The last step to implement this was to change the menu items, which is now done. The Browser Console replaces the Error Console and should everything the Error Console did and more. The old Error Console menu item is still present in the DOM, but hidden. So, if your overlay relies on it, you’ll want to change it soon, since it is bound to be removed in a future update.
- Reimplement the plugin doorhanger to deal with the new CtP spec. This changes many things about the plugin Click-to-Play experience. If your add-on has anything to do with this, you need to retest that everything is working correctly.
- Stop loading Sherlock files from disk. The Sherlock (.src) format for search plugins has been deprecated for a long time, in favor of OpenSearch. This is one of the first steps to get rid of the Sherlock format entirely.
- Remove support for prefixed “-moz-initial” CSS keyword. The now standard
initial
should be used instead. Enable us to use the second number in the Firefox version. This opens up the possibility of having a Firefox 24.1 instead of only 24.0.x, for example. Make sure that, if you do version checking, this case is contemplated.Update: It looks like this second version number will only be used internally, and won’t be exposed through the UA string.- log4moz: replace sync file I/O appenders with async ones. If you use the log4moz code that ships with Firefox and use the regular file appender, you’ll need to make some changes.
- Bug in SQLite breaks some queries from extensions. A bug in SQLite 3.7.15 was causing at least one add-on query to break. This was fixed by updating to version 3.7.17.
DOM
- Remove preventBubble and preventCapture. The standard alternative in this case is
stopPropagation()
. - Remove routeEvent, enableExternalCapture and disableExternalCapture.
- Warn about getPreventDefault being deprecated. While it won’t be removed yet, it will be soon. You should use
defaultPrevented
instead.
XPCOM
- Print a warning whenever something attempts to store more than 4Kb of preferences. We haven’t been explicit enough about this, but the preferences system is not meant for general data storage. The crashes caused by certain extensions pushed us to enforce a limit of 1Mb per preference, and we will lower it to 4Kb soon. For now, this only introduces a warning if you pass that limit.
- nsIBrowserSearchService addEngine changes browser.search.selectedEngine. The main change here is that if your add-on calls
addEngine
and the engine already exists, instead of failing silently Firefox will now show an alert with an error message. I also posted earlier about us not updating the interface ID on time and having to do it on a late beta version. Make sure to also read that post if you use this interface from a binary component. - nsIFormHistory2 is deprecated and will be removed. This only introduces a deprecation warning, but the interface will be eventually removed. The asynchronous FormHistory.jsm should be used instead.
- Remove nsIDocShellHistory. This interface was merged into
nsIDocShell
. - Remove nsIX509Cert.verifyForUsage.
- Stop exposing nsIDOMMimeType objects in nsIDOMPluginTag.
getMimeTypes()
now returns astring
array. - Remove nsIDOMHTMLMediaElement.mozLoadFrom.
New!
- Implement getPlacesInfo, async successor for getPageTitle. This is a new asynchronous function you should migrate to if you rely on
getPageTitle()
, since it will be removed eventually. - Provide a module loader for chrome workers. You can now load modules from Chrome Workers, in a similar way that it is done in SDK add-on code.
- [Android] Create a Prompts.jsm to wrap prompt messages. This is for Android only, but it introduces a useful module to show prompts.
Please let me know in the comments if there’s anything missing or incorrect on these lists. If your add-on breaks on Firefox 24, I’d like to know.
The automatic compatibility validation and upgrade for add-ons on AMO will happen in the coming week or so, so check your email if you have an add-on listed on our site with its compatibility set to Firefox 23.
Kohei Yoshino wrote on
Jorge Villalobos wrote on
ange wrote on
Jorge Villalobos wrote on
Mingyi Liu wrote on
Jorge Villalobos wrote on
Gary Flack wrote on
Jan Willem van Dormolen wrote on
sinlab wrote on
Roger Barton wrote on
Jorge Villalobos wrote on
anthony wrote on