Firefox 17 shipped on November 20, 2012. This article lists key changes that are useful for not only web developers, but also Firefox and Gecko developers as well as add-on developers.

WEB开发者需要注意的变化

HTML

CSS

DOM

JavaScript

  • 支持了Harmony中String对象的startsWith, endsWith, 以及 contains 方法. (bug 772733)
  • The String methods link and anchor now escape the '"' (quotation mark) (bug 352437).
  • 实验性的支持了strawman ParallelArray对象. (bug 778559)
  • 支持了遍历 Map/Set. (bug 725909)
  • 在web页面上默认禁用E4X(bug 778851)
  • __exposedProps__ must now be set for Chrome JavaScript objects exposed to content. Attempts to access Chrome objects from content without __exposedProps__ set will fail silently (bug 553102).
  • for..of loops now work in terms of .iterator() and .next() (bug 725907).

WebGL

 

  • The EXT_texture_filter_anisotropic WebGL extension has been unprefixed. Using "MOZ_EXT_texture_filter_anisotropic" will present a warning from now on. The prefixed name is going to be removed in a future release (bug 776001).

 

SVG

No change.

MathML

 

  • The parsing of the align attribute on <mtable> elements has been updated to treat optional spaces more correctly.

 

XUL

  • XUL key 元素支持了 "os" 修饰符,也就是Win键(Super键或者Hyper键) (bug 751749).

网络

 

  • Removed the the non-standard feature XMLHttpRequest.onuploadprogress which was deprecaed in Firefox 14.

 

开发者工具

 

  • Change JSTerm's $ helper function from getElementById to querySelector() (bug 751749).

User Agent

The Gecko part of the user agent string changed. The build date (which hadn't been updated since 2010) was removed, and the Gecko version number was put in its place instead. So Gecko/20100101 -> Gecko/17.0. This may affect you if you are doing user agent sniffing.

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

接口变化

nsIInputStream
available() 方法返回一个64位的长度而不是32位的. (bug 215450)
nsIDOMWindowUtils
sendMouseScrollEvent()方法被sendWheelEvent()替换. (bug 719320)
nsIFilePicker
The open() method, to open the file dialog asynchronously, has been added and the show() method has been deprecated (bug 731307).
nsIScriptSecurityManager
The checkLoadURIStr() and checkLoadURI() methods have been removed (bug 327244).
nsIRefreshURI
The setupRefreshURIFromHeader() method has a added principal parameter (bug 327244).

新增接口

None.

移除接口

None removed.

See also

Older versions

文档标签和贡献者

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