Web开发者需要注意的变化
HTML
- 实现了
<style>
元素上的scoped
属性.拥有该属性的<style>
元素可以通过在Firefox 20中实现的CSS伪类:scope
选择器选择到.(bug 508725). - 实现了新的
<main>
元素(bug 820508).
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
- 实现了
window.location
上的origin
属性 (bug 828261). 实现了
<input type="time">
对象上的valueAsDate
和valueAsNumber
方法(bug 781570).- 实现了
<input type="time">
对象上的min
和max
属性(bug 781572). - Some new keyCodes for volume control are supported (bug 674739).
- Some new keyCodes for ancient keyboard layout such as AS/400 are now supported on Windows and Linux (bug 833719).
- Various keyCode values for OEM sepecific keys on Windows are now supported again (bug 833719).
- 实现了
window.crypto.getRandomValues
函数(bug 440046).
SVG
- 实现了
paint-order
属性(bug 828805).
网络
- 更新CSP实现到最新的CSP规范1.0(CR):
- Support for the spec-compliant
Content-Security-Policy
HTTP header (in addition to the experimentalX-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).
- Support for the spec-compliant
附加组件和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
oronItemRemoved
:nsINavHistoryObserver::OnBeforeDeleteURI
nsINavBookmarkObserver::OnBeforeItemRemoved
- Never implemented properly:
nsINavHistoryFullVisitResultNode
- Deprecated, use
mozIAsyncHistory::updatePlaces
instead:nsINavHistoryService::AddVisit
- Replaced by
相关链接
更早版本
- Firefox 20 for developers
- Firefox 19 for developers
- Firefox 18 for developers
- Firefox 17 for developers
- Firefox 16 for developers
- Firefox 15 for developers
- Firefox 14 for developers
- Firefox 13 for developers
- Firefox 12 for developers
- Firefox 11 for developers
- Firefox 10 for developers
- Firefox 9 for developers
- Firefox 8 for developers
- Firefox 7 for developers
- Firefox 6 for developers
- Firefox 5 for developers
- Firefox 4 for developers
- Firefox 3.6 for developers
- Firefox 3.5 for developers
- Firefox 3 for developers
- Firefox 2 for developers
- Firefox 1.5 for developers