Firefox 104 release notes for developers
This article provides information about the changes in Firefox 104 that will affect developers. Firefox 104 was released on August 23, 2022.
Changes for web developers
>HTML
No notable changes.
CSS
No notable changes.
JavaScript
-
The methods
Array.prototype.findLast(),Array.prototype.findLastIndex(),TypedArray.prototype.findLast(), andTypedArray.prototype.findLastIndex()are now supported. These are used to find the value and index (respectively) of the last element in anArrayorTypedArraythat matches a supplied test function. (See Firefox bug 1775026 for more details.) -
Serialization of native Error types additionally includes the
stackproperty when used withwindow.postMessage()andstructuredClone()(on error types that includestack). Thestackis not yet serialized when errors are sent using other APIs, such asWorker.postMessage()(See Firefox bug 1774866 for more details.)
APIs
DOM
HTMLElement.focus()now supports the parameteroption.focusVisible, which can be used force a browser to display visual indication after the element is focused. Note that browsers may automatically provide visual indication on focused elements if the implementation determines that it will improve accessibility. (See Firefox bug 1765083 for more details.)
Canvas
- The
fontKerningproperty is now supported onCanvasRenderingContext2DandOffscreenCanvasRenderingContext2D, enabling developers to specify how kerning is used when text is drawn to a canvas or an offscreen canvas (Firefox bug 1778908).
SVG
- The
SVGStyleElement.disabledproperty can now be used to disable or enable an SVG style element, or to check its disabled state. This mirrors the behavior ofHTMLStyleElement.disabled. (See Firefox bug 1712623 for more details.)
Removals
- The
optionsargument to theIDBFactory.open()method has been removed. This option provided a non-standard, and Firefox-only way to make the indicated database persistent. The option was previously deprecated, and users that need this functionality should already have migrated toStorageManager.persist(). (See Firefox bug 1354500 for more details.)
WebDriver conformance (WebDriver BiDi, Marionette)
WebDriver BiDi
- Added support for
sourceto thelog.entryAddedevent (Firefox bug 1770792). - Updated the
urlsent forbrowsingContext.contextCreatedevents to beabout:blankfor newly opened browsing contexts (Firefox bug 1775141).
Marionette
- Improved stability and performance when minimizing or restoring windows on Linux (Firefox bug 1780212).
- Added support for
touchactions (Firefox bug 1543337).
Changes for add-on developers
- The
emailtrackingandemailtracking_contentflags have been added to the tracking classifications available inurlClassificationfor thewebRequestevents (Firefox bug 1773695)