Firefox 11 for developers 编辑

Firefox 11 shipped on March 13, 2012. This article provides information about the new features and key bugs fixed in this release, as well as links to more detailed documentation for both web developers and add-on developers.

Changes for Web developers

HTML

  • The attributes muted and loop on <audio> and <video> elements have been implemented.

DOM

CSS

JavaScript

No change.

SVG

  • The SVGSVGElement DOM interface now support the getElementById method.

WebSocket

  • WebSocket API now supports binary messages (see bug 676439).
  • Both the protocol and the API has been updated to the latest draft of the specification and the API has been unprefixed (see bug 666349 and bug 695635).
  • Previously, messages sent and received using WebSockets in Firefox were limited to 16 MB in size; they may now be up to 2 GB (although memory capacity limitations may prevent them from being that large, Firefox supports it).

IndexedDB

  • The support for IDBFactory.cmp() has been added.
  • An IndexedDB key can also be of one of the following types: Date, Arrays and Float (and not only String and Integer).
  • From now on, transactions are started when the transaction is created, not when the first request is placed; for example consider this:
    var trans1 = db.transaction("foo", READ_WRITE);
    var trans2 = db.transaction("foo", READ_WRITE);
    
    trans2.put("2", "key");
    trans1.put("1", "key");
    After the code is executed the object store should contain the value "2", since trans2 should run after trans1.
  • Previous to Firefox 11, object store autoIncrement counters were shared across all object stores for a given database, whereas per spec each object store should have a separate counter. This is now fixed.
  • It is now possible to create an index with an empty keyPath.
  • It is now possible to create a multi-entry index (see IDBObjectStore.createIndex parameters.)
  • The abort event now bubbles; in addition, an IDBDatabase.onabort hander has been added.
  • IndexedDB can now be used to store files/blobs.
  • IndexedDB now supports complex key paths, e.g. foo.bar to access property bar of property foo.
  • IndexedDB can now accept an array as a keyPath when creating an object store or an index (bug 694138.)

Network

Developer tools

Changes for Mozilla and add-on developers

JavaScript code modules

NetUtil.jsm

  • readInputStreamToString() has a new, optional, parameter to configure the character set interpretation while reading the input stream.

New JavaScript code modules

source-editor.jsm
Provides a convenient, easy-to-use source code editor that you can use in your add-ons. This is the same editor used by Scratchpad and other developer tools integrated into Firefox.

Interface changes

Removed interfaces

The following interfaces were implementation details that are no longer needed:

  • The omni.jar file is now called omni.ja.

Preference changes

ui.tooltipDelay
Specifies the delay, in milliseconds, between the mouse cursor beginning to hover and the display of a tooltip.

Build system changes

  • The --enable-tracejit build option has been removed.

Other changes

  • Add-ons that have not been updated in a long time are no longer assumed to be compatible by default; this is currently add-ons that indicate a maxVersion of 4.0.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:141 次

字数:17935

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文