Des erreurs de script se sont produites sur cette page. En attendant qu'elles soient traitées par les éditeurs du site, vous pouvez consulter le contenu partiel ci-dessous.

Cette traduction est en cours.

This article provides information about the changes in Firefox 59 that will affect developers. Firefox 59 was released on March 13, 2018.

Changes for web developers

Developer tools

HTML

The <textarea> element's autocomplete attribute has been implemented. This lets you enable or disable form auto-fill for the element.

CSS

SVG

No changes.

JavaScript

No changes.

APIs

New APIs

PointerEvents have been enabled in Firefox Desktop (bug 1411467).

DOM

DOM events

The Event.composedPath() method has been implemented (bug 1412775).

Service workers

Media and WebRTC

  • The MediaStreamTrack property MediaStreamTrack.muted, along with the events mute and unmute and the corresponding event handlers, onmute and onunmute, have been implemented. A track's muted state indicates that the track is not currently able to provide media data.
    Note: The muted state of a track isn't useful for what's typically thought of as muting and unmuting a track. Instead, use the enabled property; setting enabled to false causes the track to output only empty frames.
  • The RTCRtpReceiver methods getContributingSources() and getSynchronizationSources() have been implemented to provide information about the sources of each RTP stream. However, a specification change occurred before release and we have disabled these by default behind the preference media.peerconnection.rtpsourcesapi.enable (bug 1363667, bug 1430213, and bug 1433236.
  • The RTCRtpTransceiver interface has now been implemented, since the Firefox implementation of WebRTC now supports transceivers, with RTCPeerConnection and other interfaces updated to use them per the latest specification.
  • The RTCPeerConnection.addTransceiver() method has been added. In addition, the behavior of addTrack() has been updated to create a transceiver as required.
  • Support for WebVTT regions was implemented in Firefox 58 but disabled by default. They're now available by default (bug 1415805).
  • Firefox now supports WebVTT REGION definition blocks whose settings list has one setting per line instead of all of the settings being on the same line of the WebVTT file ({{ bug }}.

Canvas and WebGL

No changes.

CSSOM

The CSSNamespaceRule interface and its namespaceURL and prefix properties have been implemented (bug 1326514).

HTTP

No changes.

Security

  • Top-level navigation to data: URIs has been blocked bug 1401895. See Blocking Top-Level Navigations to data URLs for Firefox 59 for more details.
  • The SAMEORIGIN directive of the X-Frame-Options header has been changed so that it checks not only the top-level IFrame is in the same origin, but all its ancestors as well ({{ bug }}).
  • Image resources loaded from different origins to the current document are no longer able to trigger HTTP authentication dialogs ({{ bug }}). See HTTP auth dialog can no longer be triggered by cross-origin images for more details.
  • HTTP authentication now uses utf-8 encoding for usernames and passwords (rather than ISO-8859-1) for parity with other browsers, and to avoid potential problems as described in {{ bug }}.
  • Everyday the HSTS preload list is updated from Google. Normally this doesn't warrant a note, but in this release new TLDs were included, notably .app and .dev. While they are new TLDs developers might have used them for local development and be surprised by this change. Note that reserved TLDs should be used for local development instead.

Plugins

No changes.

Other

No changes.

Removals from the web platform

HTML

The non-standard version parameter of the <script> element's type attribute (e.g.  type="application/javascript;version=1.8") has been removed ({{ bug }}).

CSS

JavaScript

APIs

  • The non-standard method Event.getPreventDefault() has been removed. You should instead use the Event.defaultPrevented property to determine whether or not preventDefault() was called on the Event.
  • The propretary Navigator.mozNotification property and DesktopNotification interface have been removed, in favor of the standard Notifications API ({{ bug }}).
  • The proprietary window.external.addSearchEngine() method has been removed ({{ bug }}). Also see Window.sidebar for more details.
  • The non-standard Firefox-only HTMLMediaElement property mozAutoplayEnabled has been removed.

SVG

Support for SMIL's accessKey feature has been removed ({{ bug }}).

Other

Support for the non-standard pcast: and feed: protocols has been removed from Firefox ({{ bug }}).

Changes for add-on and Mozilla developers

WebExtensions

See also

Site compatibility for Firefox 59

Older versions

Étiquettes et contributeurs liés au document

Contributeurs à cette page : wbamberg, julienw
Dernière mise à jour par : wbamberg,