files/en-us/mozilla/firefox/releases/11/index.md
Firefox 11 shipped on March 13, 2012. This article provides information about the new features and key bugs fixed in this release, as well as links to more detailed documentation for both web developers and add-on developers.
muted and loop on {{HTMLElement("audio")}} and {{HTMLElement("video")}} elements have been implemented.XMLHttpRequest supports HTML parsing.responseType and withCredentials attributes when performing synchronous requests. Attempting to do so throws an NS_ERROR_DOM_INVALID_ACCESS_ERR exception. This change has been proposed to the W3C for standardization.mozVibrate() on Gecko.navigator.mozApps returns an Apps object you can use to install and manage open web applications.MozBeforePaint events are no longer fired. {{domxref("window.requestAnimationFrame", "mozRequestAnimationFrame()")}} consumers who used these should pass a callback function instead.Event, HTML events, UIEvent, and MouseEvent) introduced in DOM4 specifications are now supported.defaultMuted, loop and muted properties on HTMLMediaElement has been added.countryCode property of the GeoPositionAddress interface has been removed; see nsIDOMGeoPositionAddress.navigator object is created for the new page. This makes Firefox behave like all other browsers.text-size-adjust property is now supportedNo change.
getElementById method.The support for IDBFactory.cmp() has been added.
An IndexedDB key can also be of one of the following types: Date, Arrays and Float (and not only String and Integer).
From now on, transactions are started when the transaction is created, not when the first request is placed; for example consider this:
var trans1 = db.transaction("foo", READ_WRITE);
var trans2 = db.transaction("foo", READ_WRITE);
trans2.put("2", "key");
trans1.put("1", "key");
After the code is executed the object store should contain the value "2", since trans2 should run after trans1.
Previous to Firefox 11, object store {{domxref("IDBObjectStore.autoIncrement","autoIncrement")}} counters were shared across all object stores for a given database, whereas per spec each object store should have a separate counter. This is now fixed.
It is now possible to create an index with an empty keyPath.
It is now possible to create a multi-entry index (see IDBObjectStore.createIndex parameters.)
The {{domxref("IDBTransaction/abort_event", "abort")}} event now bubbles; in addition, an onabort handler has been added.
IndexedDB can now be used to store files/blobs.
IndexedDB now supports complex key paths, e.g., foo.bar to access property bar of property foo.
IndexedDB can now accept an array as a keyPath when creating an object store or an index (Firefox bug 694138.)
readInputStreamToString() has a new, optional, parameter to configure the character set interpretation while reading the input stream.source-editor.jsm
mozIAsyncHistory interface has a new method mozIAsyncHistory.isURIVisited() to check if a URI has been visited.mozIVisitStatusCallback has been added to provide callback handling functionality for mozIAsyncHistory.isURIVisited().nsIMacDockSupport interface now supports adding a text badge to the application's icon in the Dock using its new badgeText attribute.nsINavHistoryResultObserver interface, you now need to implement nsINavHistoryResultObserver.containerStateChanged() instead of the obsolete containerOpened() and containerClosed() methods.The following interfaces were implementation details that are no longer needed:
nsICharsetResolvernsIDOMNSElement, see bug707576, use nsIDOMElement instead.omni.jar file is now called omni.ja.ui.tooltipDelay
--enable-tracejit build option has been removed.maxVersion of 4.0.