Firefox 41 for developers

To test the latest developer features of Firefox, install Firefox Developer Edition Firefox 41 was released on September 22, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.

Changes for Web developers

开发工具

CSS

HTML

JavaScript

Interfaces/APIs/DOM

Events

Web Crypto

Canvas API

Service Workers

WebGL

  • The failIfMajorPerformanceCaveat WebGL context attribute has been added and can be set when creating a WebGL context with HTMLCanvasElement.getContext() to indicate if a context creation should fail if the system performance is low (Firefox bug 1164970).

WebRTC

  • Firefox no longer offers a default STUN server to be used if none are specified when constructing a new RTCPeerConnection. You'll need to provide one in order to successfully establish a WebRTC connection.

Miscellaneous

MathML

新的默认、支持字体处理

数学公式需要特殊的字体。到目前为止,这些字体被硬编码在用户默认样式 mathml.css (使用<math> 标志设置字体组) 和偏好选项font.mathfont-family (为拉伸和大操作数设置支持字体). Firefox 41 引入一个能够自动设置<math>标志和相应偏好选项的内置x-math 语言 (例如font.name.serif.x-math). 用户默认样式现在将<math>标志字体设置为 serif 并且font.mathfont-family 被替换为 font.name.serif.x-math. 所有平台现在基本使用相同列表的支持字体, "Latin Modern Math" 是首选。在标准的 per-language 字体偏好菜单中,默认支持字体能够被设置。更多细节,请参照Firefox bug 947654Firefox bug 1160456.

SVG

音频/视频

Networking

Security

Changes for add-on and Mozilla developers

XUL

没有变化。

JavaScript code modules

没有变化。

XPCOM

没有变化。

其他

See also

更早期的版本