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-position
property andposition
value forfont-synthesis
shorthand 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-font
in the CSS propertyfont-size-adjust
enables picking the desired<font-metric>
from the first available font (Firefox bug 1708240). - The CSS property
transform-box
now supports the valuescontent-box
andstroke-box
. For the reference box, thecontent-box
value uses the content box and thestroke-box
value uses the stroke bounding box that contains an SVG's shape (Firefox bug 1819464). - The CSS property
font-size-adjust
supports the keywordfrom-font
that enables picking the desired<font-metric>
from the first available font (Firefox bug 1708240).
JavaScript
No notable changes.
HTTP
- The HTTP
Permissions-Policy
header'spublickey-credentials-get
directive 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.disabled
preference has been removed (Firefox bug 1788223). - All values of the
mathvariant
attribute other thannormal
are 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.code
returnsMetaLeft
/MetaRight
instead ofOSLeft
/OSRight
(Firefox bug 1232918). - The
RTCRtpTransceiver.currentDirection
andRTCRtpTransceiver.direction
properties now support the"stopped"
value for indicating whether a transceiver has stopped. This value should now be used instead of the deprecatedRTCRtpTransceiver.stopped
property (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.emHeightDescent
andTextMetrics.emHeightAscent
properties 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:PerformActions
command in Marionette and thebrowsingContext.performActions
command in WebDriver BiDi failed to correctly scroll for awheel
input source in environments that have a high-resolution display connected (Firefox bug 1849229).
WebDriver BiDi
- Added the
browsingContext.activate
command that allows users to bring the given background tab into foreground (Firefox bug 1841004). - Added the
browsingContext.handleUserPrompt
command that allows users to accept or dismiss an open user prompt of typealert
,confirm
, orprompt
(Firefox bug 1824197). - Added the
browsingContext.userPromptOpened
event that is emitted when a user prompt of typealert
,confirm
, orprompt
was opened (Firefox bug 1824224). - Added a
type
field to the JSON payload that is returned to clients for identifyingevent
messages or the success state of a command, which can be eithersuccess
orerror
(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_style
in the manifest keysaction
,options_ui
,page_action
, andsidebar_action
for Manifest V3 extensions has been removed (Firefox bug 1830711). See Browser Styles' Manifest v3 migration for information about transitioning frombrowser_style
in Manifest V3 extensions.