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
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).
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).
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.