Skip to content

Latest commit

 

History

History
137 lines (83 loc) · 8.86 KB

File metadata and controls

137 lines (83 loc) · 8.86 KB
title slug page-type
Firefox 72 for Developers
Mozilla/Firefox/Releases/72
firefox-release-notes

{{FirefoxSidebar}}

This article provides information about the changes in Firefox 72 that will affect developers. Firefox 72 was released on January 7, 2020.

Changes for web developers

Developer tools

Console:

JavaScript debugger:

Network Monitor:

Page Inspector:

Removals

HTML

No changes.

CSS

  • CSS Shadow Parts are now enabled. This includes the part attribute and ::part pseudo-element, which allow shadow hosts to selectively expose chosen elements from their shadow tree to the outside page for styling purposes (Firefox bug 1559074).

  • CSS Motion Path has been shipped (Firefox bug 1582554, also see the Intent to Ship). This includes:

    • {{cssxref("offset")}}
    • {{cssxref("offset-path")}}
    • {{cssxref("offset-anchor")}}
    • {{cssxref("offset-distance")}}
    • {{cssxref("offset-rotate")}}
  • The individual transform properties — {{cssxref("scale")}}, {{cssxref("rotate")}}, and {{cssxref("translate")}} — are now enabled by default (Firefox bug 1424900).

Removals

SVG

No changes.

JavaScript

APIs

New APIs

DOM

  • The Geolocation API has had some interface name updates, as per recent spec changes (Firefox bug 1575144):

    • Coordinates has been changed to {{domxref("GeolocationCoordinates")}}.
    • Position has been changed to {{domxref("GeolocationPosition")}}.
    • PositionError has been changed to {{domxref("GeolocationPositionError")}}.
  • A number of properties have been updated to use standard stringifiers (Firefox bug 824857):

    • {{domxref("DOMTokenList.value")}}
    • {{domxref("HTMLAnchorElement.href")}}
    • {{domxref("Location.href")}}
    • {{domxref("MediaList.mediaText")}}
    • {{domxref("URL.href")}}
    • {{domxref("WorkerLocation.href")}}

DOM events

  • {{domxref("Notification.requestPermission_static", "Notification.requestPermission()")}} and {{domxref("PushManager.subscribe()")}} can now only be called in response to a user gesture such as a click event (Firefox bug 1593644).

Media, Web Audio, and WebRTC

  • The {{domxref("MediaDevices.getDisplayMedia()")}} method can now only be called in response to a user gesture such as a click event (Firefox bug 1580944).
  • The RTCRtpContributingSource dictionary can now include the rtpTimestamp property, which is a source-generated time at which the packet's media was generated or sampled (Firefox bug 1583867).

Removals

  • Removed the non-standard window.mozPaintCount property. (Firefox bug 1591968)
  • The {{domxref("BatteryManager")}} interface is no longer exposed to web content (Firefox bug 1441976).
  • {{domxref("Navigator.vibrate()")}} is no longer supported in cross-origin {{htmlelement("iframe")}}s (Firefox bug 1591113).
  • WebRTC no longer supports the rid= and pt= parameters on the simulcast attribute. The new syntax for a line such as "a=simulcast: send rid=7 recv rid=8" is now "a=simulcast: send 7 recv 8". The new syntax has been supported since Firefox 68, so now it's time tor retire support for the old syntax (Firefox bug 1470568).

Security

  • Opting-out of MIME sniffing using {{HTTPHeader("X-Content-Type-Options")}} is now also applied to top-level documents if a {{HTTPHeader("Content-type")}} is provided. This can cause HTML web pages to be downloaded instead of being rendered when they are served with a MIME type other than text/html. Make sure to set both headers correctly. (Firefox bug 1591932).
  • Dropped the support for HTTP Public Key Pinning (HPKP) because of the low adoption rate and interoperability risk. The Public-Key-Pins and Public-Key-Pins-Report-Only headers are now silently ignored Firefox bug 1412438.

Plugins

No changes.

WebDriver conformance (Marionette)

  • Removed Anon and AnonAttribute strategies from WebDriver:FindElement and WebDriver:FindElements commands (Firefox bug 1587627).
  • Webdriver:TakeScreenshot no longer fails if captured area exceeds upper maximum bound for the canvas width, height, or size (Firefox bug 1590064).

Changes for add-on developers

API changes

Manifest changes

No changes.

See also

Older versions

{{Firefox_for_developers}}