Firefox 142 for developers

This article provides information about the changes in Firefox 142 that affect developers. Firefox 142 is the current Beta version of Firefox and ships on August 19, 2025.

Note: The release notes for this Firefox version are still a work in progress.

Changes for web developers

HTML

Removals

APIs

DOM

Media, WebRTC, and Web Audio

WebDriver conformance (WebDriver BiDi, Marionette)

General

  • Removed FTP proxy support from WebDriver capabilities (Firefox bug 1972670).
  • Updated the expiry value of all the cookies set via WebDriver BiDi and WebDriver classic (Marionette) to be limited to 400 days (Firefox bug 1974394).

WebDriver BiDi

  • Implemented the new emulation.setLocaleOverride command which allows clients to override a locale in JavaScript APIs (Firefox bug 1968952).
  • Improved setting a proxy with browsingContext.createUserContext: added support for host patterns like .mozilla.org in noProxy property (Firefox bug 1977180) and fixed a bug when setting a HTTP proxy wouldn't allow to navigate to HTTPS URLs (Firefox bug 1977168).
  • Fixed a bug where browsingContext.create would fail after a browsingContext.print command was interrupted by closing a tab with the browsingContext.close command (Firefox bug 1841125).
  • Updated the session.end command to resume all requests which were blocked by network interceptions (Firefox bug 1974426).

Marionette

  • Updated the WebDriver:AddCookie command to throw an error when a target cookie has sameSite=none and secure=false attributes (Firefox bug 1977205).
  • Removed the dialog text value from the unexpected alert open error message, since the dialog text is available now via the data field (Firefox bug 1948236).

Changes for add-on developers

Experimental web features

  • anchor-size() (Nightly): layout.css.anchor-positioning.enabled

    The CSS anchor-size() function enables setting anchor-positioned element's size, position, and margins relative to the dimensions of anchor elements. (Firefox bug 1972610).

  • :heading and :heading(): layout.css.heading-selector.enabled

    The CSS :heading pseudo-class allows you to style all heading elements (<h1>-<h6>) at once rather than targeting them individually. The :heading() functional pseudo-class allows you to style heading elements that match the <An+B> notation. (Firefox bug 1974386).

  • view-transition-name: match-element (Nightly): dom.viewTransitions.enabled

    The match-element value of the CSS view-transition-name property automatically assigns a unique internal view-transition-name to each selected element, rather than having to name them individually. (Firefox bug 1956141).

  • Integrity-Policy and Integrity-Policy-Report-Only for scripts (Nightly): security.integrity_policy.enabled

    The Integrity-Policy and Integrity-Policy-Report-Only HTTP headers are now supported for script resources. These allow websites to either enforce subresource integrity guarantees for scripts or only report violations of the policy, respectively. (Firefox bug 1976656).

  • Integrity-Policy and Integrity-Policy-Report-Only for stylesheets: security.integrity_policy.stylesheet.enabled

    The Integrity-Policy and Integrity-Policy-Report-Only HTTP headers are now supported for stylesheet resources. These allow websites to either enforce or only report violations of the policy, respectively. (Firefox bug 1974247).

These features are shipping in Firefox 142 but are disabled by default. To experiment with them, search for the appropriate preference on the about:config page and set it to true. You can find more such features on the Experimental features page.