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

开发工具

Highlights:

All devtools bugs fixed between Firefox 40 and Firefox 41: note that many of these bugs, especially those relating to the performance tools, were uplifted to Firefox 40.

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 (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字体偏好菜单中,默认支持字体能够被设置. 更多细节,请参照bug 947654bug 1160456.

SVG

  • 站点图片(偏爱图标,快捷方式图标) 现在支持SVG(bug 366324)

音频/视频

  • The media.autoplay.enabled preference now also apply to untrusted HTMLMediaElement.play() invocations too, that is calls from non-users activated scripts (bug 659285).

Networking

  • The X-Content-Duration header is no longer supported (bug 1160695).
  • Draft versions of the HTTP/2 protocol are no more supported (bug 1132357).

Security

  • The CSP 1.1 manifest-src directive 已经被支持 (bug 1089255).
  • Previous versions of Firefox incorrectly expected the Content Security Policy referrerdirective's value origin-when-cross-origin to be spelled origin-when-crossorigin. This has been corrected to include the missing dash character.

Changes for add-on and Mozilla developers

XUL

没有变化。

JavaScript code modules

没有变化。

XPCOM

没有变化。

其他

See also

之前版本

文档标签和贡献者

标签: 
此页面的贡献者: wbamberg, Ende93, zhentao_lin
最后编辑者: wbamberg,