MDN self-hosted library · e01.org

Firefox 53 release notes for developers

Firefox 53 was released on April 19, 2017. This article lists key changes that are useful not only for web developers but also for Firefox and Gecko developers, as well as add-on developers.

no runnable cells firefox-release-notes upstream source

Firefox 53 was released on April 19, 2017. This article lists key changes that are useful not only for web developers but also for Firefox and Gecko developers, as well as add-on developers.

Changes for web developers

Developer Tools

CSS

New features

Other changes

  • Enable mask longhands on SVG elements (Firefox bug 1319667).
  • [css-grid] Fixed: align-self/justify-self:stretch/normal doesn't work on <table> grid items (Firefox bug 1316051).
  • Fixed: clip-path: circle() with large reference box and percentage radius does not render correctly (Firefox bug 1324713.
  • When applying a text-transform value of uppercase to Greek text, the accent on the disjunctive eta (ή) is no longer removed (see Firefox bug 1322989).
  • The availability of the contents value of display was controlled through the layout.css.display-contents.enabled pref. In Firefox 53, this pref has been removed altogether, so the value will always be available and can no longer be disabled (Firefox bug 1295788).

JavaScript

Events

  • CSS Transitions: The transitionstart, transitionrun, and transitioncancel events have been implemented (see Firefox bug 1264125 and Firefox bug 1287983).
  • The CompositionEvent constructor has been implemented (see Firefox bug 1002256).
  • The MouseEvent.x and MouseEvent.y aliases of MouseEvent.clientX/MouseEvent.clientY have been implemented (see Firefox bug 424390).
  • The auxclick event and corresponding event handler have been implemented (see Firefox bug 1304044).
  • The transitioncancel event is now fired after a transition is canceled.

DOM

  • The pathname and search properties of links (like for a and link elements' interfaces) previously returned the wrong parts of the URL. For example, for a URL of http://z.com/x?a=true&b=false, pathname would return "/x?a=true&b=false" and search would return "", rather than "/x" and "?a=true&b=false" respectively. This has now been fixed (Firefox bug 1310483).
  • The URLSearchParams() constructor now accepts a string or sequence of strings as an init object (Firefox bug 1330678).
  • The Selection.setBaseAndExtent() method of the Selection API is now implemented (see Firefox bug 1321623).
  • The "fakepath" addition to file type input values has been implemented in Gecko, giving it parity with other browsers (see Firefox bug 1274596).
  • Node.getRootNode() has been implemented, replacing the deprecated Node.rootNode property (Firefox bug 1269155).
  • Own properties of Plugin and PluginArray objects are no longer enumerable (Firefox bug 1270366).
  • Named properties of MimeTypeArray objects are no longer enumerable (Firefox bug 1270364).
  • The Permissions API now has a new permission name available — persistent-storage — as used when making a Permissions.query() (see Firefox bug 1270038). This allows an origin to use a persistent box (i.e., persistent storage) for its storage, as per the Storage API.
  • The Performance.timeOrigin property has been implemented (Firefox bug 1313420).

Workers and service workers

WebGL

  • The WEBGL_compressed_texture_astc WebGL extension has been implemented (Firefox bug 1250077).
  • The WEBGL_debug_renderer_info WebGL extension is now enabled by default (Firefox bug 1336645).

Audio, video, and media

General

  • Beginning in Firefox 53 for Android, decoding of media is handled out-of-process for improved performance on multi-core systems (Firefox bug 1333323).

Media elements

  • The HTMLMediaElement.play() method, used to begin playback of media in any media element, now returns a Promise which is fulfilled when playback begins and is rejected if an error occurs (Firefox bug 1244768).

Web Audio API

  • The AudioScheduledSourceNode interface has been added and the AudioBufferSourceNode, ConstantSourceNode, and OscillatorNode interfaces are now based on it (Firefox bug 1324568).
  • All the different audio node types have had constructors added to them (Firefox bug 1322883).

WebRTC

  • The RTCPeerConnection methods createOffer() and createAnswer() now return a Promise that returns an object conforming to the RTCSessionDescriptionInit dictionary instead of returning an RTCSessionDescription directly. Existing code will continue to work, but new code can be written more simply.
  • Similarly, the RTCPeerConnection methods setLocalDescription() and setRemoteDescription() now accept as input an object conforming to the dictionary RTCSessionDescriptionInit dictionary. Existing code continues to work, but can be simplified.
  • RTCPeerConnection.addIceCandidate() now accepts as input an initialization object. This is compatible with existing code but allows new code to be written slightly more simply when used in tandem with the changes listed above (Firefox bug 1263312).
  • DTMF support is now enabled by default using RTCDTMFSender. See Using DTMF with WebRTC for more information on how this works.

HTTP/Networking

  • Gecko now has a pref available in about:config to allow users to set their default Referrer-Policy — network.http.referer.userControlPolicy (Firefox bug 1304623). Possible values are:
  • 0 — no-referrer
  • 1 — same-origin
  • 2 — strict-origin-when-cross-origin
  • 3 — no-referrer-when-downgrade (the default)

  • Support for Next Protocol Negotiation (NPN) has been removed in favor of Application-Layer Protocol Negotiation (ALPN) — see Firefox bug 1248198.

  • The Large-Allocation HTTP header is now available by default, and no longer hidden behind a pref (Firefox bug 1331083).

SVG

Removals from the web platform

HTML/XML

  • The dom.details_element.enabled pref — which controlled enabling/disabling details and summary element support in Firefox — has now been removed from about:config. These elements (first enabled by default in Firefox 49) can no longer be disabled. See Firefox bug 1271549.
  • The mozapp attribute of the iframe element /HTMLIFrameElement interface has been removed — this was used to enable a Firefox OS app to be embedded in a mozilla-prefixed Browser API <iframe> (Firefox bug 1310845).
  • The HTMLIFrameElement.setInputMethodActive() method and InputMethod interface (used to set and manage IMEs on Firefox OS apps) has been removed (Firefox bug 1313169).

CSS

JavaScript

  • The non-standard ArrayBuffer.slice() method has been removed (but the standardized version ArrayBuffer.prototype.slice() is kept, see Firefox bug 1313112).

APIs

Other

  • The legacycaller has been removed from the HTMLEmbedElement and HTMLObjectElement interfaces (Firefox bug 909656).

Changes for add-on and Mozilla developers

WebExtensions

New APIs:

Enhanced APIs:

JavaScript code modules