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. (Firefox bug 565717)
  • Dict.jsm: Dict() now takes a JSON String. Dict.toJSON() was added, and it returns a JSON String. (Firefox 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.

参见

更早期的版本