Firefox 109 開發者釋出說明

本文件提供了有關 Firefox 109 中將影響開發者的更改的資訊。Firefox 109 於 2023 年 1 月 17 日釋出。

Web 開發人員的變更

HTML

  • range 元素支援 list 屬性,該屬性透過 ID 與 <datalist> 關聯,以便 Firefox 可以在滑塊上顯示刻度標記。

CSS

  • <system-color> CSS 資料型別現在支援 MarkMarkTextButtonBorder 的值(Firefox bug 1638052)。

JavaScript

無顯著變化。

SVG

移除

  • SVGGraphicsElement.getTransformToElement() 已被移除。此舉遵循其在 2015 年從 SVG2 規範中移除以及在其他主要瀏覽器中移除的情況。(Firefox bug 1803790)。

  • 在 nightly 和早期 beta 版本中,SVGGraphicsElement.nearestViewportElementSVGGraphicsElement.farthestViewportElement 屬性預設已停用(透過首選項 svg.nearestAndFarthestViewportElement.enabled 控制)。SVGElement.viewportElement 可用作 SVGGraphicsElement.nearestViewportElement 的替代項。它們已從 SVG2 規範中移除,並且很可能在未來的 Firefox 版本中被完全移除。(Firefox bug 1133174)。

HTTP

API

DOM

WebDriver 一致性 (WebDriver BiDi, Marionette)

WebDriver BiDi

  • WebDriver BiDi 的連線詳細資訊現在會寫入 WebDriverBiDiServer.json 檔案,而不是 WebDriverBiDiActivePort 檔案。新檔案同時包含埠(ws_port)和主機(ws_host)。此檔案位於 Firefox 的配置檔案資料夾中(Firefox bug 1792875)。
  • 在使用 session.subscribesession.unsubscribe 時,增加了對訂閱/取消訂閱單個 contexts 的支援(Firefox bug 1723102)。
  • 增加了對序列化 Node 物件(Firefox bug 1770731)的支援。
  • 已將 exceptionsstackTracescolumnNumber 修復為 0 基索引(Firefox bug 1796073)。

Marionette

  • 修復了 WebDriver:NewWindowWebDriver:SwitchToWindow 未正確聚焦新視窗的 bug(Firefox bug 1798655)。
  • 修復了在 Windows 上,如果 Firefox 視窗被其他應用程式遮擋,WebDriver:FindElement(及類似命令)會失敗的 bug(Firefox bug 1802473)。

附加元件開發人員的變更

  • 現在支援 Manifest V3,可以在 AMO 上簽名和釋出 Manifest V3 擴充套件。有關更多資訊,請參閱 Manifest v3 signing available November 21 on Firefox Nightly 部落格文章。以下預覽功能現已全面可用:

    • scripting API,儘管此 API 自 Firefox 102 起已可用於 Manifest V2 擴充套件。
    • action API,以及 manifest 中的 "action" 鍵和 commands 鍵中的 _execute_action 特殊快捷方式。
    • "host_permissions" manifest 鍵。
  • Manifest V3 擴充套件的預設 內容安全策略 (CSP) 已更新為包含 upgrade-insecure-requests。這意味著,預設情況下,所有網路請求都會升級為使用 https:。需要使用 http: 的擴充套件可以透過使用 content_security_policy manifest.json 鍵覆蓋預設 CSP 來實現(Firefox bug 1797086)。

  • 已將 secretKeyLength 屬性新增到 webRequest.SecurityInfo。此屬性提供 Web 請求安全屬性中金鑰長度(以位元為單位)(Firefox bug 1778473)。

  • 隨著 extensions button 的引入,actionbrowser_action manifest 鍵中 default_area 的預設值已從 "navbar" 更改為 "menupanel"Firefox bug 1799947)。

  • 支援 omnibox.onDeleteSuggestionomnibox.SuggestResult 中的 deletable 屬性,使擴充套件能夠響應使用者刪除位址列搜尋結果(Firefox bug 1799947)。

  • 支援 topleft 引數,用於透過 windows.create() 確定 panelpopup 視窗的位置(Firefox bug 1271047)。