Firefox 18 for developers
Firefox 18 已于 2013 年 1 月 8 日发布。
WEB 开发者需要注意的变化
HTML
- 实现了
<ol>
元素上的reversed
属性 (Firefox bug 601912). - 实现了
<link>
元素上的crossorigin
属性 (Firefox bug 786564).
CSS
min-width
和min-height
属性使用auto
关键字作为初始值 (This has an effect only on flex items as it resolves to0
, the previous initial value, for other items). (Firefox bug 763689)- The cascade has been updated: now author
!important
rules override CSS animations (en-US). (Firefox bug 783714) background
简写属性可以包含 CSS3 中的background-size
属性了。(Firefox bug 570326)- 初步实现了 Flexbox.默认禁用状态,可以通过设置
layout.css.flexbox.enabled
选项激活该特性.(Firefox bug 666041)
DOM
- 实现了
navigator.mozPay
属性(Firefox bug 767818) - 实现了
window.devicePixelRatio
属性。(Firefox bug 564815) - 在 MacOS 上实现了
window.navigator.battery
属性。(Firefox bug 696045) - 删除了
MozBlobBuilder
。开发者应该使用Blob
构造函数来创建Blob
对象。(Firefox bug 744907) visibilitychange
事件和页面可见性 API (en-US)取消前缀Firefox bug 812086).- 实现了
TextDecoder
和TextEncoder
。(Firefox bug 764234) HTMLMediaElement.src
被分成了两个属性:一个是标准的src
属性,返回普通的字符串DOMString
,另一个是带前缀的mozSrcObject
属性,返回 media streams (en-US)(Firefox bug 792665)。
JavaScript
- 实现了 EcmaScript 6 中的直接代理(Firefox bug 703537).警告:该实现包含了一些已知的 bug,以及未根据最新规范草案实现某些特性。不要在生产环境中使用它。
- 实现了 ECMAScript 6 中的字符串方法
contains()
.
WebGL
SVG
MathML
XUL
网络
- HTTP 请求头
Accept-Language
可以使用两位数字的质量因子("q-values")(Firefox bug 672448)。 - HTTP 响应头支持了
X-FRAME-OPTIONS
(en-US)中的ALLOW-FROM
语法 (Firefox bug 690168).
开发者工具
附加组件和 Mozilla 开发者需要注意的变化
接口变更
nsIStreamListener
-
onDataAvailable()
方法的第四个参数 (aOffset) 类型改为无符号长整型。(Firefox bug 784912) nsIUploadChannel
-
setUploadStream()
支持了超过 2GB 大小的 content-length (Firefox bug 790617) nsIEditor
-
删除了
addEditorObserver()
,使用setEditorObserver()
来替代,removeEditorObserver()
不再需要一个nsIEditorObserver
参数(Firefox bug 785091) nsIHttpProtocolHandler
-
http-on-modify-request
observers are no longer guaranteed to be called synchronously duringnsIChannel.asyncOpen()
. For observers that need to be called duringasyncOpen
(), the newhttp-on-opening-request
observer topic has been added. (Firefox bug 800799)
新增接口
移除接口
下面的接口已经被移除。
nsIEditorObserver
相关链接
更早版本
- Firefox 17 for developers (en-US)
- Firefox 16 for developers (en-US)
- Firefox 15 for developers (en-US)
- Firefox 14 for developers
- Firefox 13 for developers (en-US)
- Firefox 12 for developers (en-US)
- Firefox 11 for developers (en-US)
- Firefox 10 for developers (en-US)
- Firefox 9 for developers (en-US)
- Firefox 8 for developers (en-US)
- Firefox 7 for developers (en-US)
- Firefox 6 for developers (en-US)
- Firefox 5 for developers (en-US)
- Firefox 4 for developers (en-US)
- Firefox 3.6 for developers (en-US)
- Firefox 3.5 for developers (en-US)
- Firefox 3 for developers
- Firefox 2 for developers (en-US)
- Firefox 1.5 for developers (en-US)