files/en-us/mozilla/firefox/releases/31/index.md
Firefox 31 was released on July 22, 2014. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
Highlights:
All devtools bugs fixed between Firefox 30 and Firefox 31.
var- prefix of CSS Variables to -- to reflect the final spec change (Firefox bug 985838).::-moz-math-stretchy pseudo-element has been removed (Firefox bug 1000879).New ECMAScript 2015 features implemented:
Array built-in: {{jsxref("Array.prototype.fill()")}} (Firefox bug 911147)Math function: {{jsxref("Math.clz32()")}} (Firefox bug 925123)String built-in: {{jsxref("String.prototype.normalize()")}} is available in Firefox Desktop (Firefox bug 918987).Object method {{jsxref("Object.setPrototypeOf()")}}.Number constants: {{jsxref("Number.MAX_SAFE_INTEGER")}} and {{jsxref("Number.MIN_SAFE_INTEGER")}}.KeyboardEvent has been implemented (Firefox bug 930893).KeyboardEvent.isComposing attribute has been implemented (Firefox bug 993234).InputEvent interface has been implemented (Firefox bug 993253).InputEvent.isComposing attribute has been implemented (Firefox bug 993253).preventDefault() only sets defaultPrevented attribute to true; any other behaviors are not changed. E.g., it cannot prevent to set :hover state.Connection interface has been renamed to {{domxref("NetworkInformation")}} and has been modified to match the new specification (Firefox bug 960426).::-moz-math-stretchy pseudo-element has been removed (Firefox bug 1000879).No change.
No change.
The align attribute on the urlbar-wrapper (formerly on the urlbar-container) which was set to center since time immemorial, has been removed. This is known to affect third-party themes. You should look carefully at what the right fix is for your theme, but for maintaining the equivalent effect, you can add the following CSS rule to your theme:
#urlbar-wrapper {
-moz-box-align: center;
}
nsIDOMWindowUtils.sendQueryContentEvent() and nsIDOMWindowUtils.sendSelectionSetEvent() have aAdditionalFlags as optional argument. If you called nsIDOMWindowUtils.sendSelectionSetEvent() with true for aReverse, the behavior would be broken by this change. See explanation of each flag (QUERY_CONTENT_FLAG_* and SELECTION_SET_FLAG_*) for the detail of aAdditionalFlags.
Highlights:
GitHub commits made between Firefox 30 and Firefox 31. This will not include any uplifts made after this release entered Aurora.
Bugs fixed between Firefox 30 and Firefox 31. This will not include any uplifts made after this release entered Aurora.