Skip to content

Latest commit

 

History

History
85 lines (56 loc) · 4.55 KB

File metadata and controls

85 lines (56 loc) · 4.55 KB
title slug
Firefox 18 for developers
Mozilla/Firefox/Releases/18

{{FirefoxSidebar}}

Firefox 18 已于 2013 年 1 月 8 日发布。

WEB 开发者需要注意的变化

HTML

CSS

  • {{cssxref("min-width")}} 和 {{cssxref("min-height")}} 属性使用 auto 关键字作为初始值 (This has an effect only on flex items as it resolves to 0, the previous initial value, for other items). (Firefox bug 763689)
  • The cascade has been updated: now author !important rules override CSS animations. (Firefox bug 783714)
  • {{cssxref("background")}}简写属性可以包含 CSS3 中的{{cssxref("background-size")}}属性了。(Firefox bug 570326)
  • 初步实现了 Flexbox.默认禁用状态,可以通过设置layout.css.flexbox.enabled选项激活该特性.(Firefox bug 666041)

DOM

JavaScript

  • 实现了 EcmaScript 6 中的直接代理(Firefox bug 703537).警告:该实现包含了一些已知的 bug,以及未根据最新规范草案实现某些特性。不要在生产环境中使用它。
  • 实现了 ECMAScript 6 中的字符串方法contains().

WebGL

SVG

MathML

XUL

网络

开发者工具

附加组件和 Mozilla 开发者需要注意的变化

接口变更

  • nsIStreamListener
    • : onDataAvailable()方法的第四个参数 (aOffset) 类型改为无符号长整型。(Firefox bug 784912)
  • nsIUploadChannel
  • nsIEditor
    • : 删除了 addEditorObserver(),使用 setEditorObserver() 来替代,removeEditorObserver() 不再需要一个 nsIEditorObserver 参数(Firefox bug 785091
  • nsIHttpProtocolHandler
    • : http-on-modify-request observers are no longer guaranteed to be called synchronously during nsIChannel.asyncOpen(). For observers that need to be called during asyncOpen(), the new http-on-opening-request observer topic has been added. (Firefox bug 800799)

新增接口

移除接口

下面的接口已经被移除。

  • nsIEditorObserver

参见

更早期的版本

{{Firefox_for_developers}}