Firefox 2 for developers 编辑

New developer features in Firefox 2

Firefox 2 introduces a vast array of new features and capabilities. This article provides links to articles covering the new features.

For web site and application developers

Microsummaries
Microsummaries are regularly-updated succinct compilations of the most important information on web pages. Site and third-party developers can both provide them, and users can choose to display microsummaries instead of static titles when they bookmark pages with microsummaries.
Creating a Microsummary
A tutorial on creating a microsummary generator.
Microsummary XML grammar reference
A reference guide to the XML grammar used for creating microsummary generators.
Creating OpenSearch plugins for Firefox
Firefox 2 supports the OpenSearch search engine format.
Creating MozSearch plugins
Firefox 2 supports MozSearch, a search plugin format based on OpenSearch, but intended only for internal use.
Supporting search suggestions in search plugins
How to make your MozSearch plugin support search suggestions, which appear in a drop-down list while typing in the search bar.
New in JavaScript 1.7
Firefox 2 supports JavaScript 1.7, which includes new features including let, destructuring assignment, generators and iterators, and array comprehensions.
WHATWG Client-side session and persistent storage (aka DOM Storage)
Client-side session and persistent storage allows web applications to store structured data on the client side.
SVG in Firefox
Firefox 2 improves Scalable Vector Graphics (SVG) support, implementing the <textPath> element and adding support for some attributes not previously supported.
Controlling spell checking in HTML forms
Firefox 2 includes support for inline spell checking in text areas and text fields. This article describes how to write your HTML to enable and disable spell checking on individual form elements.
Security in Firefox 2
Firefox 2 has changes to which security protocols are enabled by default.

For XUL and extension developers

Updating extensions for Firefox 2
Covers how to get your existing extensions to work with Firefox 2.
Session store API
Contributing items to be saved and restored across sessions in Firefox.
Feed content access API
API that lets developers access and parse RSS and Atom feeds.
SAX support
Event-based XML parser API.
Adding search engines from web pages
JavaScript code can instruct Firefox to install a new search engine plugin, which can be written using either OpenSearch or Sherlock format.
Using spell checking in XUL
How to check the spelling of words or get a list of suggested spellings from code.
Adding phishing protection data providers
It's possible to enhance Firefox's phishing protection by adding additional data providers for the safe browsing system.
Adding feed readers to Firefox
You can add new feed readers to Firefox, whether web-based or application-based.
Storage
Firefox 2 introduces mozStorage, an sqlite based database architecture.
Theme changes in Firefox 2
Discusses the changes needed to update existing themes to work in Firefox 2.
Textbox Improvements (Firefox 2.0.0.1 and higher only)
The <textbox> now has a reset() method to reset the value of the textbox to the default value. The defaultValue property may be used to retrieve and modify the default value of the textbox (bug 312867).
Supports an editor property to get the internal nsIEditor for the text field (bug 312867).

New features for end users

Firefox 2 provides an enhanced version of the same clean user interface offered by previous versions, with improved security features to make your online experience safer and more convenient than ever.

User experience

  • Inline spell checking for text areas lets you compose with confidence in web forms.
  • Microsummaries provide a way to create bookmarks that display information pulled from the site they refer to, updated automatically. Great for stock tickers, auction monitoring, and so forth.
  • Extension Manager user interface has been enhanced.
  • Search engine manager lets you rearrange and remove search engines shown in the search bar.
  • Tabbed browsing enhancements include adding close buttons to each tab, adjustments to how Firefox decides which tab to bring you to when you close the current tab, and simplified preferences for tabs.
  • Autodetection of search engines allows search engines that offer plugins for the Firefox search bar to offer to install their plugins for you.
  • Search suggestions allow search engines to offer suggested search terms based on what you've typed so far in the search bar.

Security and privacy

  • Phishing Protection to warn users when the web site you're looking at appears to be a forgery.

See also

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

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

发布评论

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

词条统计

浏览:85 次

字数:8004

最后编辑:6 年前

编辑次数:0 次

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