Firefox 161 release notes for developers (Stable)

This article provides information about the changes in Firefox 161 that affect developers. Firefox 161 was released on November 24, 2026.

Changes for web developers

HTML

No notable changes.

SVG

CSS

  • The random() CSS function is now supported. It generates a random value within a specified range and can optionally limit the possible values to increments of a specified step size. An optional <random-key> parameter can be used to share a random base value across random() functions, for example on different elements or in different properties. (Firefox bug 2072252).
  • The var(), attr(), and env() CSS functions now accept nested functions in their first parameter. For example, var(attr(data-theme-prop type(<custom-ident>))) and env(var(--safe-area-block-start)) are now supported. (Firefox bug 2080511).

JavaScript

No notable changes.

HTTP

APIs

Media, WebRTC, and Web Audio

  • The RTCRtpSender.setParameters() method now supports the optional setParameterOptions parameter. This lets you ask the encoder for an encoding to generate a key frame in the same call that you use to change the sender's encoding parameters, such as active or scaleResolutionDownBy. Receivers can then avoid requesting a key frame after the change. (Firefox bug 2057265).

WebDriver conformance (WebDriver BiDi, Marionette)

WebDriver BiDi

  • Updated the script.callFunction command to return an invalid argument error when an argument or the this value contains a local value with an unknown type, including nested values. Previously, such values were silently replaced with undefined. (Firefox bug 2084105).
  • Updated the script.evaluate and script.callFunction commands to stop clearing a pre-existing user activation flag when called with userActivation: false. (Firefox bug 2084107).
  • Fixed an issue where the browsingContext.navigate and browsingContext.reload commands could hang or fail with the wrong error when a navigation started while the previous document was still loading. (Firefox bug 2088640).
  • Fixed a performance issue where each call to the browsingContext.setViewport command became slower over the lifetime of the session. (Firefox bug 2084362).
  • Fixed the network.continueRequest command so that replacing the body of a request that already had a body also updates the Content-Length header. Previously, the server could receive a truncated or incomplete body. (Firefox bug 2088814).

Changes for add-on developers

Experimental web features

These features are shipping in Firefox 161 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.

  • margin-trim property: layout.css.margin-trim.enabled

    The margin-trim property is now supported for block containers, and is enabled by default in Nightly. It removes the block-axis margins of child elements at the container's start edge, end edge, or both, while keeping the margins between siblings. (Firefox bug 2051240).

  • Cross-document view transitions (Nightly): dom.viewTransitions.cross-document.enabled

    Cross-document view transitions are now enabled by default in Nightly. These can be used to animate the transition between same-origin pages in a multi-page app. (Firefox bug 2084340).

  • Render blocking (Nightly): dom.element.blocking.enabled

    The blocking="render" attribute of the <link>, <script>, and <style> elements is now enabled by default in Nightly. This lets you block rendering of the page until the marked stylesheet has loaded or script has run, so the page doesn't first appear unstyled or incomplete. (Firefox bug 2084340).

  • match-parent value for quotes (Nightly): layout.css.quotes.match-parent.enabled

    The quotes CSS property now supports the match-parent value, which makes an element use the quotation marks from the same set of quotation-mark pairs as its parent element. (Firefox bug 1752382).

  • text-autospace-size property: layout.css.text-autospace-size.enabled

    The text-autospace-size property is now supported, and is enabled by default in Nightly. It sets the amount of space that text-autospace adds between Chinese/Japanese/Korean (CJK) and non-CJK characters. (Firefox bug 2086765).

  • prefers-color-scheme reflects <meta name="color-scheme">: layout.css.prefers-color-scheme.meta-tag.enabled

    The prefers-color-scheme media feature now reflects the color scheme declared by a <meta name="color-scheme"> element, when the element specifies a single scheme. This allows better selection of images and videos by color scheme. It also makes theme switchers easier to implement. The preference is enabled by default in Nightly. (Firefox bug 2085572).