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
- The
<object>
element no longer supports the deprecatedcodebase
attribute. Use thedata
attribute instead. (See Firefox bug 1973900 for more details.)
APIs
- The URL Pattern API is fully supported, enabling you to match and parse URLs using a standardized pattern syntax. (Firefox bug 1731418).
- The File and Directory Entries API now fully supports the
HTMLInputElement.webkitdirectory
(and corresponding HTMLwebkitdirectory
attribute) andFile.webkitRelativePath
properties on Firefox Android. This lets you configure an<input type="file">
element to accept directories instead of files (Firefox bug 1973726).
DOM
- The
Selection.getComposedRanges()
method is now supported, allowing developers to accurately get selected text ranges across shadow DOM boundaries. In addition, the methodssetBaseAndExtent()
,collapse()
, andextend()
of theSelection
interface have been modified to accept nodes inside a shadow root. (Firefox bug 1903870). - The
Animation.overallProgress
property is now supported, allowing developers to track and display progress through an animation. (Firefox bug 1834878). - The
Animation.commitStyles()
method no longer requiresfill
to be set on an animation to commit the computed styles after the animation has finished. Note that until more browsers support this change, you should continue to setfill
. (Firefox bug 1973203). - The Prioritized Task Scheduling API is now supported, providing a standardized mechanism to assign and manage task priorities for an application.
The supported interfaces include:
Scheduler
,TaskController
,TaskSignal
,TaskPriorityChangeEvent
(and theprioritychange
event), and the propertiesWindow.scheduler
andWorkerGlobalScope.scheduler
. TheScheduling
interface and theNavigator.scheduling
property are not supported. (Firefox bug 1966997).
Media, WebRTC, and Web Audio
- The
currentRoundTripTime
,totalRoundTripTime
, andresponsesReceived
properties of theRTCIceCandidatePairStats
dictionary are now supported. These return the current round trip time (RTT) and the information needed to calculate the average RTT for the connection. (Firefox bug 1371391). - The
setParameters()
andgetParameters()
methods of theRTCRtpSender
interface now support setting and getting the specificcodec
used for eachencoding
. You can also set acodec
for each encoding in theinit.sendEncodings
array that's passed to theaddTransceiver()
method of theRTCPeerConnection
interface. (Firefox bug 1894137). - The
estimatedPlayoutTimestamp
,framesAssembledFromMultiplePackets
,freezeCount
,jitterBufferMinimumDelay
,jitterBufferTargetDelay
,keyFramesDecoded
,pauseCount
,totalAssemblyTime
,totalFreezesDuration
andtotalPausesDuration
properties of theRTCInboundRtpStreamStats
interface are now supported. (Firefox bug 1926622).
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
innoProxy
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 abrowsingContext.print
command was interrupted by closing a tab with thebrowsingContext.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 hassameSite=none
andsecure=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 thedata
field (Firefox bug 1948236).
Changes for add-on developers
- Cookies created with
cookies.set()
in Nightly are now validated, and invalid cookies are rejected. The implementation in Nightly is to enable monitoring for any issues. The intention is to enforce validation in all channels in a future release. (Firefox bug 1976197) - Adds the
browserAction.onUserSettingsChanged
andaction.onUserSettingsChanged
events that listen for changes in the user-specified settings that affect an extension's action. (Firefox bug 1828220)
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 CSSview-transition-name
property automatically assigns a unique internalview-transition-name
to each selected element, rather than having to name them individually. (Firefox bug 1956141). -
Integrity-Policy
andIntegrity-Policy-Report-Only
for scripts (Nightly):security.integrity_policy.enabled
The
Integrity-Policy
andIntegrity-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
andIntegrity-Policy-Report-Only
for stylesheets:security.integrity_policy.stylesheet.enabled
The
Integrity-Policy
andIntegrity-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.