如果你是一个Web开发人员,并且希望了解Firefox 3中所有的新特性,这里是一个很好的起点。这篇文章提供了一个覆盖所有Firefox 3新特性的列表。虽然他并不是能够包括所有微小的改动,但他能够帮助你学习到最主要的更新。
Firefox 3 中新的开发人员特性
对网站和程序开发者
- 更新WEB应用以适应Firefox 3
- 提供了您用于更新WEB应用以受益于Firefox 3新特性所需的信息。
- 上线与离线事件
- Firefox 3支持WHATWG的上线与离线事件,基于这一特性,程序可以检测当前是否有可用的互联网联接以及何时上线或下线。
- 跨域的XMLHttpRequest请求
- Firefox 3 supports the W3C Access Control working draft which gives you the ability to do XMLHttpRequests to other web sites, retrieving and manipulating their data; giving you the ability to create impressive browser-based mashups.
- 交错格式样表
- Firefox 3 supports the CSS object model alternate style sheet API.
- Web-based protocol handlers
- You can now register web applications as protocol handlers using the
navigator.registerProtocolHandler() method.
- 在画画布(canvas)中“绘”出文字
- 您可以使用Firefox 3支持的非标准API在canvas上绘制文字。
- Transform support for canvas
- Firefox now supports the
transform() and setTransform() methods on canvases.
- 使用微格式
- Firefox now has APIs for working with microformats.
- 拖放事件
- Firefox 3 supports new events that are sent to the source node for a drag operation when the drag begins and ends.
- Focus management in HTML
- The new HTML 5
activeElement and hasFocus attributes are supported.
- 离线浏览
- 在Firefox中,WEB程序现在可以在离线时使用之前被缓存的资源。
- 在Firefox 3中CSS的改进
- Firefox 3 features a number of improvements in its CSS support.
- 在Firefox 3中DOM的改进
- Firefox 3 offers a number of new features in Firefox 3's DOM implementation, including support for several Internet Explorer extensions to the DOM.
- JavaScript 1.8 的支持
- Firefox 3 提供了 JavaScript 1.8 标准的支持。
- EXSLT支持
- Firefox 3 provides support for a substantial subset of the EXSLT extensions to XSLT.
- Firefox 3中SVG的改进
- SVG support in Firefox 3 has been upgraded significantly, with support for over two dozen new filters, several new elements and attributes, and other improvements.
- 对PNG动画的支持
- Firefox 3 提供了对色彩艳丽的 PNG (APNG) 图像格式的支持.
<a ping> support
- The
<a ping> feature for pinging a URL is now supported, and is enabled by default.
对XUL和扩展插件的开发者
- 更新扩展以兼容Firefox 3
- Provides a guide to the things you'll need to do to update your extension to work with Firefox 3.
- FUEL Library
- FUEL is about making it easier for extension developers to be productive, by minimizing some of the XPCOM formality and adding some "modern" JavaScript ideas.
- XUL improvements in Firefox 3
- Firefox 3 offers a number of new XUL elements, including new sliding scales, the date and time pickers, and spin buttons.
- Templates in Firefox 3
- Templates have been significantly improved in Firefox 3. The key improvement allows the use of custom query processors to allow data sources other than RDF to be used.
- Embedding XBL bindings
- You can now use the
data: URL scheme to embed XBL bindings directly instead of having them in separate XML files.
- Localizing extension descriptions
- Firefox 3 offers a new method for localizing add-on metadata. This lets the localized details be available as soon as the add-on has been downloaded, as well as when the add-on is disabled.
- Securing updates
- In order to provide a more secure add-on upgrade path for users, add-ons are now required to provide a secure method for obtaining updates before they can be installed. Add-ons hosted at AMO automatically provide this.
- Idle service
- Firefox 3 offers the new
nsIIdleService
interface, which lets extensions determine how long it's been since the user last pressed a key or moved their mouse.
- 全屏缩放
- Firefox 3 improves the user experience by offering full page zoom in addition to text-only zoom.
- Interfacing with the XPCOM cycle collector
- XPCOM code can now take advantage of the cycle collector, which helps ensure that unused memory gets released instead of leaking.
- The Thread Manager
- Firefox 3 provides the new
nsIThreadManager
interface, along with new interfaces for threads and thread events, which provides a convenient way to create and manage threads in your code.
- JavaScript模块
- Firefox 3 now offers a new shared code module mechanism that lets you easily create modules in JavaScript that can be loaded by extensions and applications for use, much like shared libraries.
- Places
- The history and bookmarks APIs have been completely replaced by the new Places API.
- Making the transition to Places
- An article about how to update an existing extension to use the Places API.
- Firefox 3中下载管理器的改进
- The Firefox 3 Download Manager features new and improved APIs, including support for multiple progress listeners.
- Using nsILoginManager
- 密码管理已经被新的登录管理所代替。
- Using content preferences
- Firefox 3 includes a new service for getting and setting arbitrary site-specific preferences that extensions as well as core code can use to keep track of their users' preferences for individual sites.
- Notable bugs fixed in Firefox 3
- 文章中所提供的相关Bug信息,已经在Firefox 3中进行了修改。
- Firefox 3 的界面改动
- Notes and information of use to people who want to create themes for Firefox 3.
最终用户将能体验到的新特性
用户体验
- 更轻松的密码管理. An information bar at the top of the browser window now appears to allow you to save passwords after a successful login.
- Simplified add-on installation. You can now install extensions from third-party download sites in fewer clicks, thanks to the removal of the add-on download site whitelist.
- 新的下载管理器. The download manager makes it easier to locate your downloaded files.
- Resumable downloads. You can now resume downloads after restarting the browser or resetting your network connection.
- 全屏缩放. 今后,你可以使用菜单或快捷键, 可以缩放整个网页的内容 -- 这个比例取决除了文字排版,还取决于更合适的图片排版 .
- 标签滚动和快捷菜单. Tabs are easier to locate with the new tab scrolling and tab quickmenu features.
- 保存您当前的浏览内容. Firefox 3 prompts you to see if you'd like to save your current tabs when you exit Firefox.
- 优化的标签打开方式. Opening a folder of bookmarks in tabs now appends the new tabs instead of replacing the existing ones.
- 轻松更改搜索引挚工具框的大小和位置. You can now easily resize the location and search bars using a simple resize handle between them.
- 改进了文本选择. You can now select multiple ranges of text using the Control (Command on Macintosh) key. Double-clicking and dragging now selects in "word-by-word" mode. Triple-clicking selects an entire paragraph.
- 查找工具. The Find toolbar now opens with the current selection.
- 扩展管理. Users can now disable individual plugins in the Add-on Manager.
- 与Windows Vista的整合. Firefox's menus now display using Vista's native theme.
- Integration with Mac OS X. Firefox now uses the Mac OS X spell checker and supports Growl for notifications of completed downloads and available updates.
- 开始按钮. The new star button in the location bar lets you quickly add a new bookmark with a single click. A second click lets you file and tag your new bookmark.
- 标签. You can now associate keywords with your bookmarks to easily sort them by topic.
- 地址栏和自动地址补全. Type the title or tag of a page in the location bar to quickly find the site you were looking for in your history and bookmarks. Favicons, bookmark, and tag indicators help you see where the results are coming from.
- 智能书签菜单. Firefox's new Smart Bookmarks folder offers quick access to your recently bookmarked and tagged places, as well as pages you visit frequently.
- Bookmarks and History Organizer. The new unified bookmarks and history organizer lets you easily search your history and bookmarks with multiple views and smart folders for saving your frequent searches.
- Web-based protocol handlers. Web applications, such as your favorite web mail provider, can now be used instead of desktop applications for handling
mailto: links from other sites. Similar support is provided for other protocols as well. (Note that web applications do have to register themselves with Firefox before this will work.)
- Easy to use Download Actions. A new Applications preferences pane provides an improved user interface for configuring handlers for various file types and protocol schemes.
- 改进的浏览器外观. Graphics and font handling have been improved to make web sites look better on your screen, including sharper text rendering and better support for fonts with ligatures and complex scripts. In addition, Mac and Linux (Gnome) users will find that Firefox feels more like a native application for their platform than ever, with a new, native, look and feel.
- 支持颜色设置. By setting the
gfx.color_management.enabled preference in [about:config], you can ask Firefox to use the color profiles embedded in images to adjust the colors to match your computer's display.
- 支持离线浏览. Web applications can take advantage of new features to support being used even when you don't have an Internet connection.
安全和隐私
- One-click site information. Want to know more about the site you're visiting? Click the site's icon in the location bar to see who owns it. Identify information is prominently displayed and easier than ever to understand.
站点信息显示.想要知道你所想访问的网站?
- Malware protection. Firefox 3 warns you if you arrive at a web site that is known to install viruses, spyware, trojans, or other dangerous software (known as malware). You can see what the warning looks like by clicking here.
- Web forgery protection enhanced. Now when you visit a page that's suspected of being a forgery, you're shown a special page instead of the contents of the page with a warning. Click here to see what it looks like.
- Easier to understand SSL errors. The errors presented when an invalid SSL certificate is encountered have been clarified to make it easier to understand what the problem is.
- Out-of-date add-on protection. Firefox 3 now automatically checks add-on and plugin versions and disables older, insecure versions.
- Secure add-on updates. Add-on update security has been improved by disallowing add-ons that use an insecure update mechanism.
- Anti-virus integration. Firefox 3 now informs anti-virus software when executable files are downloaded.
- Windows Vista parental controls support. Firefox 3 supports the Vista system-wide parental control setting for disabling file downloads.
性能
- 可靠性. Firefox 3 now stores bookmarks, history, cookies, and preferences in a transactionally secure database format. This means your data is protected against loss even if your system crashes.
- 速度. Firefox 3 has gotten a performance boost by completely replacing the part of the software that handles drawing to your screen, as well as to how page layout work is handled.
- 更少的内存占用. Firefox 3 is more memory efficient than ever, with over 300 memory "leak" bugs fixed and new features to help automatically locate and dispose of leaked memory blocks.