Firefox 118 release notes for developers
This article provides information about the changes in Firefox 118 that affect developers. Firefox 118 was released on September 26, 2023.
Changes for web developers
>HTML
- The
<search>element is now supported. The<search>element is a group element that serves to contain all the elements used in a search or filtering operation (Firefox bug 1824121).
CSS
- The
font-synthesis-positionproperty andpositionvalue forfont-synthesisshorthand property are now supported. These allow subscript and superscript typefaces to be disabled for fonts that do not have glyphs for them when usingfont-variant-position(Firefox bug 1849010). - Multiple CSS math functions are now supported:
abs(),sign(),round(),mod(),rem(),pow(),sqrt(),hypot(),log(), andexp()(Firefox bug 1814589). - A new keyword
from-fontin the CSS propertyfont-size-adjustenables picking the desired<font-metric>from the first available font (Firefox bug 1708240). - The CSS property
transform-boxnow supports the valuescontent-boxandstroke-box. For the reference box, thecontent-boxvalue uses the content box and thestroke-boxvalue uses the stroke bounding box that contains an SVG's shape (Firefox bug 1819464). - The CSS property
font-size-adjustsupports the keywordfrom-fontthat enables picking the desired<font-metric>from the first available font (Firefox bug 1708240).
JavaScript
No notable changes.
HTTP
- The HTTP
Permissions-Policyheader'spublickey-credentials-getdirective is now supported, which can be used to enable the Web Authentication API interface for retrieving public-key credentials in a cross-origin iframe (Firefox bug 1460986).
MathML
- The
<semantics>and<maction>elements only render the first child element by default now. Themathml.legacy_maction_and_semantics_implementations.disabledpreference has been removed (Firefox bug 1788223). - All values of the
mathvariantattribute other thannormalare now deprecated. Additionally, the attribute's use is now limited to the<mi>element (Firefox bug 1845461).
APIs
- The ⊞ Windows Logo key on Windows and the Command key on macOS now return a value of
"Meta"forKeyboardEvent.key, instead of"OS", andKeyboardEvent.codereturnsMetaLeft/MetaRightinstead ofOSLeft/OSRight(Firefox bug 1232918). - The
RTCRtpTransceiver.currentDirectionandRTCRtpTransceiver.directionproperties now support the"stopped"value for indicating whether a transceiver has stopped. This value should now be used instead of the deprecatedRTCRtpTransceiver.stoppedproperty (Firefox bug 1568296). - The array returned by
RTCPeerConnection.getTransceivers()now omits stopped transceivers. Similarly,RTCPeerConnection.getReceivers()andRTCPeerConnection.getSenders()omit the receivers and senders associated with a stopped transceiver (Firefox bug 1568296). - The
TextMetrics.emHeightDescentandTextMetrics.emHeightAscentproperties are now supported (Firefox bug 1841692).
WebDriver conformance (WebDriver BiDi, Marionette)
General
- Fixed an internal race condition for Android that caused the returned user prompt text to be empty for both WebDriver BiDi and Marionette (Firefox bug 1848167).
- Both the
WebDriver:PerformActionscommand in Marionette and thebrowsingContext.performActionscommand in WebDriver BiDi failed to correctly scroll for awheelinput source in environments that have a high-resolution display connected (Firefox bug 1849229).
WebDriver BiDi
- Added the
browsingContext.activatecommand that allows users to bring the given background tab into foreground (Firefox bug 1841004). - Added the
browsingContext.handleUserPromptcommand that allows users to accept or dismiss an open user prompt of typealert,confirm, orprompt(Firefox bug 1824197). - Added the
browsingContext.userPromptOpenedevent that is emitted when a user prompt of typealert,confirm, orpromptwas opened (Firefox bug 1824224). - Added a
typefield to the JSON payload that is returned to clients for identifyingeventmessages or the success state of a command, which can be eithersuccessorerror(Firefox bug 1844009).
Marionette
- Added support for all the Web Authentication extension commands, which allow users to authenticate themselves by Public Key Credentials (Firefox bug 1846574)
Changes for add-on developers
>Removals
- Support for
browser_stylein the manifest keysaction,options_ui,page_action, andsidebar_actionfor Manifest V3 extensions has been removed (Firefox bug 1830711). See Browser Styles' Manifest v3 migration for information about transitioning frombrowser_stylein Manifest V3 extensions.