Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Firefox 21 for developers

Web开发者需要注意的变化

HTML

JavaScript

  • E4X,一个古老的JavaScript扩展(ECMA-357),已经被删除.因为一直以来,只有Gecko支持它.(bug 788293).
  • parseInt不再将以"0"开头的字符串作为8进制数字来解析(bug 786135).

CSS

  • -moz-user-select属性的属性值在设置为none时和设置为-moz-none时效果等同于,这样才能让Gecko和其他内核WebKit(Chrome, Safari),Presto (Opera)以及Trident(Internet Explorer)中的表现相同(bug 816298).
  • On XHTML content, the auto value of -moz-hyphens incorrectly applied hyphenation rules when the language was not explicitly declared. This is fixed by (bug 702121).
  • CSS属性-moz-orient现在支持新的值auto.当应用到一个<meter>元素或者<progress>元素上时,auto就等同于horizontal(bug 835883).

DOM

SVG

网络

  • 更新CSP实现到最新的CSP规范1.0(CR):
    • Support for the spec-compliant Content-Security-Policy HTTP header (in addition to the experimental X-Content-Security-Policy) has been added (bug 783049). Note: the patch for this new header landed in Firefox 21, it is disabled on builds (bug 842657).

附加组件和Mozilla开发者需要注意的变化

  • FUEL applications cannot use the Livemarks service anymore (bug 834492). The Livemarks service is deprecated and phased out in favor of the new async interface.
  • History API saw numerous deprecated API being removed:
    • Replaced by mozIAsyncFavicons:
      • nsIFaviconService::setFaviconUrlForPage
      • nsIFaviconService::setFaviconData
      • nsIFaviconService::getFaviconData
      • nsIFaviconService::getFaviconForPage
      • nsIFaviconService::setAndLoadFaviconForPage
      • nsIFaviconService::getFaviconImageForPage
      • nsIFaviconService::getFaviconDataAsDataURL
    • Replaced by mozIAsyncLivemarks:
      • nsILivemarkService::*
      • PlacesUtils.itemIsLivemark
      • PlacesUtils.nodeIsLivemarkContainer
      • PlacesUtils.nodeIsLivemarkItem
    • Removed only third argument:
      • PlacesUIUtils.showBookmarkDialog
    • No more implemented by Places, use mozIAsyncHistory instead:
      • nsIGlobalHistory2::addURI
      • nsIGlobalHistory2::isVisited
      • nsIGlobalHistory2::setPageTitle
    • No more needed, use onDeleteURI or onItemRemoved:
      • nsINavHistoryObserver::OnBeforeDeleteURI
      • nsINavBookmarkObserver::OnBeforeItemRemoved
    • Never implemented properly:
      • nsINavHistoryFullVisitResultNode
    • Deprecated, use mozIAsyncHistory::updatePlaces instead:
      • nsINavHistoryService::AddVisit

相关链接

更早版本

文档标签和贡献者

 此页面的贡献者: ziyunfei, ethertank
 最后编辑者: ziyunfei,