--- title: Firefox 18 for developers slug: Mozilla/Firefox/Releases/18 translation_of: Mozilla/Firefox/Releases/18 ---
Firefox 18已于2013年1月8日发布.
auto关键字作为初始值(This has an effect only on flex items as it resolves to 0, the previous initial value, for other items). ({{bug("763689")}})!important rules override CSS animations. ({{bug("783714")}})layout.css.flexbox.enabled选项激活该特性.({{bug('666041')}})实现了navigator.mozPay属性({{bug("767818")}})实现了window.devicePixelRatio属性. ({{bug("564815")}})window.navigator.battery属性. ({{bug("696045")}})Blob对象. ({{bug("744907")}})实现了TextDecoder和TextEncoder .({{bug("764234")}})HTMLMediaElement.src被分成了两个属性:一个是标准的src属性,返回普通的字符串{{domxref("DOMString")}},另一个是带前缀的mozSrcObject属性,返回media streams ({{bug("792665")}}).contains().Accept-Language可以使用两位数字的质量因子("q-values")({{bug("672448")}}).X-FRAME-OPTIONS中的ALLOW-FROM语法({{bug("690168")}}).onDataAvailable()方法的第四个参数(aOffset)类型改为无符号长整型. ({{bug("784912")}})setUploadStream()支持了超过2GB大小的content-length ({{bug("790617")}})删除了addEditorObserver(),使用setEditorObserver()来替代, removeEditorObserver()不再需要一个{{ interface("nsIEditorObserver") }}参数({{bug("785091")}})http-on-modify-request observers are no longer guaranteed to be called synchronously duringnsIChannel.asyncOpen(). For observers that need to be called during asyncOpen(), the new http-on-opening-request observer topic has been added. ({{bug("800799")}})下面的接口已经被移除.
{{Firefox_for_developers('17')}}