Path: blob/main/files/en-us/mozilla/firefox/releases/29/index.md
6581 views
------{{FirefoxSidebar}}
Firefox 29 was released on April 29, 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.
Changes for Web developers
Developer Tools
Major changes include:
Vastly improved web console - Arrays are shown inline without clicking to bring up in the right inspector, window objects show their URL, etc.
Added the console API to Web Workers (bug 620935). Now you can log messages to the Web Console from Web Workers.
The Network Monitor tool now shows performance statistics using pie charts (Firefox bug 846601).
On the Inspector, preview tooltips of CSS transforms are now available (Firefox bug 726427).
DOM elements seen in the debugger and console can be removed or inspected directly, via the new buttons to the right of the variable listing.
A CSS source map is now supported by the Style Editor (Firefox bug 926014).
Autocompletion of CSS properties and values has been added to the Style Editor (Firefox bug 717369).
See the Mozilla Hacks blog post for details and other smaller changes.
CSS
CSS variables have been implemented (Firefox bug 773296). Mozilla Hacks article can be found here. They are enabled by default only for non-release builds (on release builds flip the pref
layout.css.variables.enabledtotrueif you want to play with them).Flexboxes now support {{cssxref("visibility")}}
: collapse(Firefox bug 783470).The {{cssxref("box-sizing")}} property has been unprefixed (Firefox bug 243412).
The {{cssxref("will-change")}} property, a hint to that something will animate has been added. The preference
layout.css.will-change.enabledmust be switched totrueto enable it. (Firefox bug 940842)Scientific exponential notation, like
3e1or10e+0, is now supported for {{cssxref("<number>")}} values and derivatives, like {{cssxref("<percentage>")}} and unit values, but not {{cssxref("<integer>")}} (Firefox bug 964529).Images of type {{cssxref("<gradient>")}} are now supported in {{cssxref("border-image")}} (Firefox bug 709587).
The {{cssxref("touch-action")}} property has been implemented. It is not activated by default; the
layout.css.touch_action.enabledpref controls it. (Firefox bug 795567)Remove redundant default style for <pre> element from quirk.css (Firefox bug 948914).
CSS Variables fallback incorrectly implemented (primary cycles) (Firefox bug 950497).
@supports conditions with tokens after a declaration's priority should evaluate to false (Firefox bug 909170).
HTML
<input type=color>and<input type=number>are available by default.Support for the non standard
<pre cols>has been removed, as well as the layout effect of<pre wrap>. Both effects can, and should, be achieved using CSS. (Firefox bug 949879)
JavaScript
New ECMAScript 2015 String methods: {{jsxref("String.prototype.codePointAt()")}} and {{jsxref("String.prototype.fromCodePoint()")}} have been implemented (Firefox bug 918879).
The ECMAScript Internationalization API (ECMA-402) has been implemented and is now enabled by default in Firefox Desktop (Firefox bug 853301):
New objects in the new {{jsxref("Intl")}} object namespace:
{{jsxref("Intl/Collator", "Intl.Collator")}}
{{jsxref("Intl/DateTimeFormat", "Intl.DateTimeFormat")}}
{{jsxref("Intl/NumberFormat", "Intl.NumberFormat")}}
The following methods of {{jsxref("String")}}, {{jsxref("Number")}} and {{jsxref("Date")}} have been updated to include the
localesandoptionsarguments per ECMA-402:{{jsxref("String.prototype.localeCompare()")}}
{{jsxref("Number.prototype.toLocaleString()")}}
{{jsxref("Date.prototype.toLocaleString()")}}
{{jsxref("Date.prototype.toLocaleDateString()")}}
{{jsxref("Date.prototype.toLocaleTimeString()")}}
To match the updated ECMAScript 2015 draft specification, the {{jsxref("Map")}} and {{jsxref("Set")}} objects now treat
-0and+0as the same when checking for key and value equality.Promisehas been enabled by default (Firefox bug 918806).Completed generators now return an
IteratorResultobject instead of throwing (Firefox bug 958951).A malformed JSON string parsed by {{jsxref("JSON.parse()")}} now yields a more detailed error message containing the line and column number that caused the parsing error. This is useful when debugging large JSON data.
The {{jsxref("ArrayBuffer.isView()")}} method has been added (Firefox bug 896105).
Interfaces/APIs/DOM
A new type of workers, {{domxref("SharedWorker")}}, is now available by default (Firefox bug 924089).
The {{domxref("URL")}} interface now supports the {{domxref("URL.searchParams", "searchParams")}} property returning a {{domxref("URLSearchParams")}} object, allowing to modify the search params of a URL (Firefox bug 887836). The {{domxref("URLSearchParams.URLSearchParams", "URLSearchParams()")}} constructor allows easier parsing of query strings.
The {{domxref("WorkerNavigator.onLine", "navigator.onLine")}} property is now supported on {{domxref("WorkerNavigator")}}, allowing to know the online/offline status in workers (Firefox bug 925437).
As part of the implementation of Web Components, the {{domxref("HTMLShadowElement")}} interface has been implemented behind the
dom.webcomponents.enabled. Flip it totrueif you want to use it. (Firefox bug 887538)The read-only property {{domxref("HTMLIFrameElement.sandbox")}} is no longer a string but a {{domxref("DOMTokenList")}} (Firefox bug 845057).
On {{domxref("HTMLCanvasElement.getContext()")}}, the value
moz-webglis no longer supported. Use the standardwebglvalue (Firefox bug 913597).The constructor for {{domxref("ImageData")}} has been added. This interface can be used in a {{domxref("Worker")}}. (Firefox bug 959958)
The property {{domxref("WorkerLocation.origin", "location.origin")}} is now available in workers (via {{domxref("WorkerLocation")}}) (Firefox bug 964148).
The {{domxref("ValidityState.badInput")}} property has been implemented (Firefox bug 827161).
The deprecated
Window.pkcs11property has been removed; it was returningnullsince Firefox 3.0.14. (Firefox bug 964964)The {{domxref("Node.cloneNode()")}} and {{domxref("Document.importNode()")}} methods take the Boolean
deepargument. Until now, if omitted, these methods acted as if the value ofdeepwastrue. But this behavior has been changed as per the latest spec, and if omitted, the methods will act as if the value wasfalse. (Firefox bug 937461)Window._contentis no longer available to Web content (Firefox bug 946564).{{domxref("HTMLAnchorElement/port", "URLUtils.port")}} behavior has been slightly changed: set to
''will set it to the default port associated with the protocol, and0to0.(Firefox bug 930450){{domxref("Document.referrer")}} is now based on the incumbent script (Firefox bug 887928).
The Gamepad API is enabled by default (Firefox bug 878828).
The
CanvasRenderingContext2D.drawSystemFocusRing()method got renamed to {{domxref("CanvasRenderingContext2D.drawFocusIfNeeded()")}} (Firefox bug 959820).
MathML
No change.
SVG
No change.
Security
The CSP 1.1 experimental
hash-sourcedirective has been implemented. The preferencesecurity.csp.experimentalEnabledshould be set totrueto enable this functionality (Firefox bug 883975).
Changes for add-on and Mozilla developers
Major Firefox theme changes affect most extensions that interact with the Firefox user interface.
nsISecurityCheckedComponenthas been removed (Firefox bug 794943). Most consumers can removensISecurityCheckedComponentfrom their interface definition and they will continue to work.
Older versions
{{Firefox_for_developers('28')}}