Movatterモバイル変換


[0]ホーム

URL:


  1. Mozilla
  2. Firefox
  3. Release notes for developers
  4. Firefox 122

Firefox 122 release notes for developers

This article provides information about the changes in Firefox 122 that affect developers. Firefox 122 was released onJanuary 23, 2024.

Changes for web developers

HTML

  • <hr> elements are now allowed as children of<select> elements. This is a new feature that improves the readability of select lists with many options. (Firefox bug 1830909).
  • Thetype HTML attribute no longer has an effect if set tonone,disc,circle orsquare in<ol> and no longer has an effect if set to1,a,A,i orI in<ul>. Astype is a deprecated attribute for<ul> and<ol> lists, these should be styled withlist-style-type CSS property instead. (Firefox bug 1868087).

CSS

JavaScript

SVG

Removals

  • Removed support fordata: URLs in SVG<use> elements and via theSVGUseElement interface to preventXSS attacks.The legacy functionality may be re-enabled by setting thesvg.use-element.data-url-href.allowed preference totrue, although this is not recommended for security reasons (Firefox bug 1806964).

APIs

DOM

Removals

WebDriver conformance (WebDriver BiDi, Marionette)

General

  • Fixed a bug that preventedPerform Actions to correctly synthesize double and other multi-click events for themouse input source (Firefox bug 1864614). Additionally, these events will only be emitted when the actual mouse position has not changed since the last click action (Firefox bug 1681076).
  • The definitions for thePause andEqual (Numpad block) keys have been updated to align with the WebDriver specification (Firefox bug 1863687).

WebDriver BiDi

  • The serialization ofWindowProxy remote objects now also works correctly for out-of-process iframes (Firefox bug 1867667).
  • ThebrowsingContext.setViewport command now distinguishes betweenundefined andnull as values for theviewport argument. If set toundefined, it signifies that the viewport should remain unchanged, while usingnull will reset it to its original dimensions (Firefox bug 1865618).
  • Support for thebrowsingContext.traverseHistory command has been introduced, enabling navigations backward and forward in the browser history (Firefox bug 1841018).
  • Fixed a bug in all supported network events where thecontext id consistently reported the top-level browsing context, even when the navigation occurred within an iframe (Firefox bug 1869735).

Marionette

Experimental web features

These features are newly shipped in Firefox 122 but are disabled by default. To experiment with them, search for the appropriate preference on theabout:config page and set it totrue. You can find more such features on theExperimental features page.

  • Declarative shadow DOM:dom.webcomponents.shadowdom.declarative.enabled.

    The<template> element now supports ashadowrootmode attribute which can be set to eitheropen orclosed, the same values as themode option of theattachShadow() method. It allows the creation of a shadow DOM subtree declaratively. (Firefox bug 1712140)

  • Clonable option and property for shadow DOM.

    • TheElement.attachShadow() method now supports theclonable boolean option that specifies whether the created shadow root is clonable: the default value isfalse but when set totrue, the shadow host cloned withNode.cloneNode() orDocument.importNode() will include shadow root in the copy.
    • TheShadowRoot interface now supports theclonable read-only property. It returnstrue if the shadow root is clonable, andfalse otherwise. It always returnstrue for shadow roots created via declarative shadow DOM.

    When shadow root is created via declarative shadow DOM, theclonable option is set totrue by default, and theclonable property returnstrue. (Firefox bug 1868428)

  • Popover API:dom.element.popover.enabled.

    Displaying popovers on top of page content is now supported via HTML attributes or JavaScript API, including styling with the CSS:popover-open pseudo-class and extended support for the::backdrop pseudo-element. See thePopover API reference for more details. (Firefox bug 1823757)

  • Clipboard read and write:dom.events.asyncClipboard.clipboardItem,dom.events.asyncClipboard.readText anddom.events.asyncClipboard.writeText.

    The asyncClipboard API is now fully supported, includingread(),readText(), andwrite() methods and theClipboardItem interface. A paste context menu will appear for the user to confirm when reading clipboard data not provided by the same-origin page. (Firefox bug 1809106)

  • Intl.Segmenter: enabled by default only in Firefox Nightly.

    TheIntl.Segmenter object allows accurate locale-sensitive text segmentation of a string. For example, to split a text into words in a language that doesn't use spaces to separate them:Intl.Segmenter("ja-JP", { granularity: "word" }). (Firefox bug 1423593)

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp