Firefox 113 for developers 发行说明

本文档提供了关于 Firefox 113 中影响开发者的更改的信息。Firefox 113 已于 2023 年 5 月 9 日发布。

Web 开发人员的变更

HTML

无显著变化。

CSS

JavaScript

无显著变化。

API

媒体、WebRTC 和 Web Audio

移除

  • 已永久移除已弃用且非标准的 CanvasRenderingContext2D.mozTextStyle 属性。该属性之前被隐藏在首选项后面。(Firefox bug 1294362)。
  • 已永久移除已弃用且非标准的属性 mozRTCPeerConnectionmozRTCIceCandidatemozRTCSessionDescriptionFirefox bug 1531812)。

WebDriver 一致性 (WebDriver BiDi, Marionette)

WebDriver BiDi

  • 添加了对序列化 Shadow DOM 中的 Node 对象以及 Node 对象上的 shadowRoot 属性的支持(Firefox bug 1802137)。
  • network.responseStartednetwork.responseCompleted 事件添加了对缓存响应的支持(Firefox bug 1806802Firefox bug 1806794)。
  • 修复了在使用 document.open()document.close() 进行导航时,browsingContext.domContentLoadedbrowsingContext.load 事件缺失的问题(Firefox bug 1822772)。
  • 修复了一个问题:当作为参数传递了未知的对象时,script.callFunction 命令会抛出 invalid argument 错误,而不是预期的 no such handle 错误(Firefox bug 1821039)。

Marionette

  • moz:useNonSpecCompliantPointerOrigin 功能现已弃用,并将在 Firefox 116 中完全移除(Firefox bug 1824911)。
  • 实现了 WebDriver:FindElementFromShadowRootWebDriver:FindElementsFromShadowRoot 命令(Firefox bug 1700095)。
  • 实现了 WebDriver:GetComputedLabelWebDriver:GetComputedRole 命令(Firefox bug 1585622)。
  • WebDriver:Print 命令添加了对 background 参数的支持(Firefox bug 1783086)。
  • WebDriver:Print 命令添加了对 orientation 参数的支持(Firefox bug 1791819)。
  • 修复了 DOMTokenList 实例的问题,现在它们作为集合返回,而不是任意对象(Firefox bug 1823464)。

附加组件开发人员的变更

其他

  • 支持动画 AVIF(AV1 图像格式文件)图像。以前,它们会显示为静态图像,网页无法检测到这一点并回退到其他格式。(Firefox bug 1825580)。