Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Firefox 19 for developers

Firefox 19已于2013年2月19日正式发布.

Web开发者需要注意的变化

JavaScript

CSS

DOM

XForms

删除了对XForms的支持.

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

注: A key change in Firefox 19 is that nsresult is now strongly typed. This will help make it easier to detect bugs that are caused by mishandling of return values, but may cause existing code to break if it's making incorrect assumptions in this regard.

  • getBrowserSelection() now returns the selected text in a text input field. As a result, gContextMenu.isTextSelected will be true when the user selects text in a text input field that is not a password field. (bug 565717)
  • Dict.jsm: Dict() now takes a JSON String. Dict.toJSON() was added, and it returns a JSON String. (bug 727967)

接口变化

nsIImgLoadingContent
The parameter (aObserver) of addObserver() method changes from imgIDecoderObserver to imgINotificationObserver. The notify() method of imgINotificationObserver is not scriptable, so you need to use createScriptedObserver() from imgITools.
nsIChannel
 contentLength 属性的类型由 long 改成 int64_t.

相关链接

更早版本

文档标签和贡献者

 此页面的贡献者: mrstork, ziyunfei
 最后编辑者: mrstork,