对于开发人员的 Firefox 78
本文提供了有关 Firefox 78 中将影响开发人员的更改的信息。Firefox 78 发布于2020 年 6 月 30 日.
另请参阅 Firefox 78 中的新增功能:DevTools 的改进,新的正则表达式引擎以及 Mozilla hacks 上大量的 Web 平台更新。
对于 Web 开发人员的更改
开发者工具
调试器
- 现在,你可以从关于:调试面板更改远程设备访问的 URL。(Firefox bug 1617237)
- 现在,调试器中的 禁用 JavaScript 菜单项仅影响当前选项卡,并且在关闭“开发人员工具”后会重置。(Firefox bug 1640318)
- 如果在作用域中启用映射,则日志点 (en-US)可以将源映射代码中的变量名称映射回其原始名称。(Firefox bug 1536857)
网络监控器
- In the Network Monitor (en-US), you can now resize the columns of the request list by dragging the column borders anywhere in the table. (Firefox bug 1618409)
- The request details panel in the Network Monitor has some UX improvements. (Firefox bug 1631302, Firefox bug 1631295)
- If a request was blocked, the request list (en-US) now shows the reason, such as an add-on, CSP, CORS, or Enhanced Tracking Protection. (Firefox bug 1555057, Firefox bug 1445637, Firefox bug 1556451)
其他工具
- The Accessibility inspector is out of beta. You can use it to check for various accessibility issues on your site. (Firefox bug 1602075)
- Uncaught promise errors now provide all details in the Console, including their name and stack. (Firefox bug 1636590)
CSS
- The
:is()
and:where()
pseudo-classes are now enabled by default (Firefox bug 1632646). - The
:read-only
and:read-write
pseudo-classes are now supported without prefixes (Firefox bug 312971).- In addition,
:read-write
styles are no longer applied to disabled<input>
and<textarea>
elements, which was a violation of the HTML spec (Firefox bug 888884).
- In addition,
JavaScript
- The
Intl.ListFormat
API is now supported (Firefox bug 1589095). - The
Intl.NumberFormat()
(en-US) constructor has been extended to support new options specified in the Intl.NumberFormat Unified API Proposal (Firefox bug 1633836). This includes among other things: - The
RegExp
engine has been updated and now supports all new features introduced in ECMAScript 2018: - Due to a WebIDL spec change in mid-2020, we've added a
Symbol.toStringTag
property to all DOM prototype objects (Firefox bug 1277799). - The garbage collection of
WeakMap
objects has been improved.WeakMaps
are now marked incrementally (Firefox bug 1167452).
一些 API
DOM
- The
ParentNode.replaceChildren()
(en-US) method has been implemented (Firefox bug 1626015).
服务工作者
- Extended Support Releases (ESR): Firefox 78 is the first ESR release that supports Service workers (and the Push API). Earlier ESR releases had no support (Firefox bug 1547023).
Web 组装
- Wasm Multi-value is now supported, meaning that WebAssembly functions can now return multiple values, and instruction sequences can consume and produce multiple stack values (Firefox bug 1628321).
- WebAssembly now supports import and export of 64-bit integer function parameters (i64) using
BigInt
from JavaScript (Firefox bug 1608770).
TLS 1.0 和 1.1 已被移除
- 所有浏览器都不再支持传输层安全 (TLS) 协议的 1.0 和 1.1 版本。阅读TLS 1.0 和 1.1 删除更新以获取先前的公告,以及如果受到影响应采取的措施 (Firefox bug 1643229).
对于附加组件开发人员的更改
browsingData.removeCache
(en-US) 和browsingData.removePluginData
(en-US) 现在支持按主机名删除。(Firefox bug 1636784).- 使用
proxy.onRequest
(en-US)时,现在可以正确应用基于选项卡 ID 或窗口 ID 限制的过滤器。这对于希望仅在一个窗口中提供代理功能的加载项很有用。 - 现在,从“所有选项卡”下拉菜单中单击上下文菜单 (en-US)即可传递适当的选项卡对象。过去,活动选项卡被错误地传递了。
- 当使用带有另存为选项的
downloads.download
时,可以记住最近使用的目录。尽管此信息对开发人员用处不大,但对用户而言却非常方便。
旧版本
- Firefox 77 for developers (en-US)
- Firefox 76 for developers (en-US)
- Firefox 75 for developers (en-US)
- Firefox 74 for developers (en-US)
- Firefox 73 for developers (en-US)
- Firefox 72 for developers (en-US)
- Firefox 71 for developers (en-US)
- Firefox 70 for developers (en-US)
- Firefox 69 for developers (en-US)
- Firefox 68 for developers (en-US)
- Firefox 67 for developers (en-US)
- Firefox 66 for developers (en-US)
- Firefox 65 for developers
- Firefox 64 for developers (en-US)
- Firefox 63 for developers (en-US)
- Firefox 62 for developers (en-US)
- Firefox 61 for developers (en-US)
- Firefox 60 for developers (en-US)
- Firefox 59 for developers
- Firefox 58 for developers (en-US)
- Firefox 57 for developers (en-US)
- Firefox 56 for developers (en-US)
- Firefox 55 for developers (en-US)
- Firefox 54 for developers (en-US)
- Firefox 53 for developers (en-US)
- Firefox 52 for developers (en-US)
- Firefox 51 for developers (en-US)
- Firefox 50 for developers (en-US)
- Firefox 49 for developers (en-US)
- Firefox 48 for developers (en-US)
- Firefox 47 for developers (en-US)