Firefox 16 for developers 编辑

Firefox 16 shipped on October 9, 2012. This article lists key changes that are useful for not only Web developers to know about, but also Firefox and Gecko developers as well as add-on developers.

Changes for Web developers

HTML

CSS

API/DOM

  • Two new properties width and height have been added to the HTMLInputElement interface (bug 683855).
  • IndexedDB properties and methods have been unprefixed. (bug 726378)
  • The Battery API is now unprefixed.
  • The Vibration API has been unprefixed.
  • The non-standard Keyboard interface, prefixed as mozKeyboard, now has the Keyboard.setSelectedOption() and Keyboard.setValue() methods, as well as the Keyboard.onfocuschange. This interface, only available for Firefox OS, has been removed in Firefox 31.
  • The java and Packages global objects have been removed. See LiveConnect.
  • The CSSRule.type associated with CSSNamespaceRule has been updated from UNKNOWN_RULE (0) to NAMESPACE_RULE (10) (bug 765590).
  • WebSMS API: SmsRequest has been superseded by the more general DOMRequest.
  • The non-standard Element.scrollTopMax and Element.scrollLeftMax read-only properties have been added (bug 766937).
  • The second parameter of Blob(), when set to null or undefined, is now being handled as an empty dictionary (bug 7691119).

JavaScript

WebGL

No change

SVG

No change

MathML

  • The lspace and rspace attributes of <mo> now correctly default to thickmathspace.

Network

Developer tools

  • There's now a handy developer toolbar you can access by going to Tools > Web Developer > Developer Toolbar, or by pressing Ctrl-Shift-V (Cmd-Opt-V on Mac OS X). This toolbar offers a command line interface as well as buttons for quickly accessing useful tools. The graphical command line interface (GCLI) is easy to expand and additional commands are expected in the future. Type "help" to get a list of supported commands.
  • The Web Console now displays an error count so you can quickly see how much work you have ahead of you.
  • The Scratchpad now offers a list of recently opened files.

Changes for Open Web App developers

  • Initial Open Web App support has been implemented in the desktop versions of Firefox (that is, on Windows, Mac OS X, and Linux).

Changes for add-on and Mozilla developers

Interface changes

nsIPrivateDOMEvent has been merged into nsIDOMEvent. (bug 761613)

New interfaces

Removed interfaces

The following interfaces have been removed.

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

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

发布评论

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

词条统计

浏览:182 次

字数:13170

最后编辑:7年前

编辑次数:0 次

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