草案
本页尚未完工.
Firefox 15, based on Gecko , will ship in . This article provides information about the changes in this release that will affect developers. Nightly builds of what will become Firefox 15 are currently available on the channel.
Note: Items listed here are tentatively slated for Firefox 15; however, they may be held for a future release if testing shows they're not ready by the time Firefox 15 is due to ship. Please keep an eye on this page to stay up to date on the plans for Firefox 15.
Want to help document Firefox 15? See the list of bugs that need to be written about and pitch in!
Changes for Web developers
HTML
- The
size
attribute of the<font>
element is now handled according the HTML5 spec. It means that all integer greater than 10 or smaller than -10 are now considered equivalent to 10, respectively -10. - Support for
font-weight
andpoint-size
attributes on the<font>
element has been removed; these were non-standard and Gecko was the only engine supporting them. - The Opus codec is now supported for audio in Ogg containers for the HTML
<audio>
and<video>
elements. - The
<source>
element now supports themedia
attribute. - The
<audio>
and<video>
elements now support the played attribute, which provides aTimeRanges
object listing the time ranges of the media that have been played back so far.
CSS
- The
font-feature-settings
property has been updated to the latest syntax:font-feature-settings: "lnum" 1;
- The CSS
text-transform
property has been extended to correctly handle Unicode ligature characters (like?
). - The CSS
word-break
property has been implemented. - The
border-image
property has been updated to match the latest Specification and properties have been unprefixed. (bug 713643)
DOM
- The DOM Events Level 3 methods
KeyboardEvent.getModifierState()
andMouseEvent.getModifierState()
, which let you query the state of modifier keys, likeCtrl
orShift
, have been implemented (bugs 630811 and 731878). But the behavior conforms to the latest D3E draft. So, some modifier key names are different from IE (bug 769190). - On mouse events, support for querying the state of the mouse buttons using the
MouseEvent.buttons
attribute, has been implemented. - On keyboard events, support for querying the key location (standard, left or right of modifier key, in the Numpad) using the KeyboardEvent.location attribute, has been implemented (bug 166240).
- KeyboardEvent.keycode result has been computed from better rules which were almost same on Windows/Linux/Mac. And now they are available on some keyboard layouts which are not ASCII capable layouts on Linux and Mac, such as Arabic, Cyrillic, Thai and so on. See the document for virtual key codes.
- The
range.detach()
method has been transformed in a no-op and will probably be removed in the future. - The method
HTMLVideoElement.mozHasAudio()
has been implemented. It indicates if there is an audio track associated to a given video element. (bug 480376) - The
Performance
API has a new method,now()
, supporting high resolution timers of typeDOMHighResTimeStamp
. (bug 539095). - The
Window.java
andWindow.packages
attributes has been removed. These were never documented, and hopefully you're not using them! - The WebSMS API has been updated and now supports a
read
attribute indicating whether an SMS text message is read or unread. - The FileHandle API has been implemented.
- The
Blob
constructor now takesArrayBufferView
as a member ofblobParts
parameter in addition toArrayBuffer
. (bug 752402)
JavaScript
- Support for the
DataView
interface from the Typed Arrays specification has been added. This provides low-level access to the data contained in anArrayBuffer
. - 添加了对
ES6中的Number.isNaN
方法的支持.(bug 749818) - 添加了对
ES6中的默认参数
的支持. (bug 757676) - 添加了对
ES6中的剩余参数
的支持.(bug 574132)
WebGL
- Support for the
WEBGL_compressed_texture_s3tc
extension has been added. Compressed textures reduce the amount of memory needed to store a texture on the GPU, allowing for higher resolution textures or more of the same resolution textures.
MathML
- Mathematical operators can now use downloadable fonts specified with
@font-face
. This makes the MathML-fonts add-on work with stretchy operators too. - The
selection
attribute of the<maction>
is now only taken into account with thetoggle
actiontype. - Deprecated namedspace binding has been removed (bug 673759).
- Supported syntax for Length and
<mpadded>
values have been made closer to the one specified in MathML3 spec.
Network
- Support for the SPDY v3 protocol has landed. It is disabled by default and can be enabled by setting the preference
network.http.spdy.enabled.v3
to true. (bug 737470)
附加组件开发
接口变更
nsIDOMWindowUtils
aModifiers
ofsendMouseEvent()
,sendTouchEvent()
,sendMouseEventToWindow()
,sendMouseScrollEvent()
andsendKeyEvent()
supports all modifier keys which are supported byKeyboardEvent.getModifierState()
. UseMODIFIER_*
values. And now the 5th parameter ofsendKeyEvent()
is changed fromboolean
tounsigned long
. For backward compatibility, if caller passestrue
orfalse
to it, the behavior isn't changed. This change allows callers to specify the key's location.nsIBrowserHistory
- The
hidePage()
method was never implemented, and has been removed entirely in this release. TheaddPageWithDetails()
method has also been removed as part of the ongoing work to make all Places APIs asynchronous; usemozIAsyncHistory.updatePlaces()
instead. Also, thecount
attribute was removed; it had not returned an actual count in some time (instead, it was simply indicating whether or not any entries existed). You can usensINavHistoryService.hasHistoryEntries
instead.
新增接口
nsISpeculativeConnect
- Provides a way to hint to the networking layer that you are likely to ask to open a connection to a given URI sometime in the near future. This lets the network layer begin the sometimes high-latency process of opening a new network connection ahead of time.
废弃接口
The following interfaces have been removed.
相关链接
- 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