Firefox 133 for Developers 發行說明

本文件提供了有關 Firefox 133 中影響開發者的更改資訊。Firefox 133 於 2024 年 11 月 26 日釋出。

Web 開發人員的變更

HTML

CSS

無顯著變化

JavaScript

API

移除

WebDriver 一致性 (WebDriver BiDi, Marionette)

WebDriver BiDi

  • network.continueRequest 命令添加了對 url 引數的支援,允許請求透明地重定向到另一個 URL(Firefox bug 1898158)。
  • 更新了 browsingContext.print,當與不正確的尺寸一起使用時,會丟擲 InvalidArgumentErrorFirefox bug 1886382)。
  • 修復了 script.evaluatescript.callFunction,允許在沙盒域中使用 document.openFirefox bug 1918288)。
  • 修復了一個錯誤,即當在主導航期間發生同文檔導航時,browsingContext.load 事件可能包含錯誤的導航 ID(Firefox bug 1922327)。
  • 修復了另一個由於導航導致命令可能因 UnknownError 而失敗的邊緣情況(Firefox bug 1923899)。

Marionette

  • 更新了 Marionette,以便更好地處理 Linux 上的 Wayland 視窗定位(Firefox bug 1857571)。
  • 修復了一個錯誤,該錯誤在嘗試點選或清除元素時,可能會在元素上留下空的 style 屬性(Firefox bug 1922709)。
  • 更新了傳送給 UnexpectedAlertOpen 錯誤的錯誤訊息,以包含相應警報的文字(Firefox bug 1924469)。

附加元件開發人員的變更

實驗性 Web 功能

這些功能是 Firefox 133 中新推出的,但預設停用。要嘗試使用它們,請在 about:config 頁面上搜索相應的偏好設定並將其設定為 true。您可以在 Experimental features 頁面上找到更多此類功能。

  • contenteditable plaintext-only 值: dom.element.contenteditable.plaintext-only.enabled

    contenteditable 全域性屬性的 plaintext-only 值表示該元素是可編輯的;富文字格式被停用,並且貼上文字中的任何格式都會被自動剝離。(Firefox bug 1922723)。

  • :has-slotted CSS 偽類: layout.css.has-slotted-selector.enabled

    :has-slotted 偽類用於對 <template> 中具有在渲染 web component 時新增到 <slot> 元素的內容的元素進行樣式設定。(Firefox bug 1921747)。