这篇翻译不完整。请帮忙从英语翻译这篇文章。
Install Firefox Developer Edition
Firefox 43,基于 Gecko 43, 将会在 December 2015 正式发布。本文记录了开发者们应该注意的,该版本的 Firefox 的各种变化。
Changes for Web developers
Developer Tools
Highlights:
- Server logging in the Web Console
- Quickly find the rule that overrode a CSS declaration
- "Use in Console" context menu item in Inspector
- "Strict" option for filtering in the Rules view
- Network entries in the Console now link to the Network Monitor
- Markup view shows indicators for pseudo-classes locked for elements
All devtools bugs fixed between Firefox 42 and Firefox 43.
CSS
- Support for the standard, unprefixed version of
hyphens
has been landed (bug 953408). - The shorthand property
font
has been updated to acceptfont-stretch
values (bug 1057680). - To match a latest evolution of the specification, the
:fullscreen
pseudo-class now selects the whole stack of elements in full screen, and not only the top-level one (bug 1199522). - The deprecated SVG values for the
writing-mode
,lr
,lr-tb
,rl
,tb
, andtb-rl
, have been added in CSS as aliases to standard properties (bug 1205787).
HTML
- For
<img>
with ICO image containing multiple frames, the intrinsic dimension of the image is set to the one of the largest frame, and no more of the smallest frame bug 1201796. - The value of the document's viewport (defined with
<meta name="viewport>
)can now dynamically be changed via JavaScript (bug 976616).
JavaScript
New APIs
- The new ES2016 methods
Array.prototype.includes()
andTypedArray.prototype.includes()
are now enabled by default (bug 1070767).
Changes regarding the arguments
object
- To match the ES2015 specification, arrow functions no longer have their own
arguments
object. Thearguments
object is now lexically bound (inherited from the outer function). In most cases, rest parameters are a good alternative(...args) => args[i]
, see bug 889158. - The arguments object is now allowed in conjunction with rest parameters (bug 1133298).
- From now on, a mapped
arguments
object in non-strict functions is only provided if the function does not contain any rest parameters, any default parameters or any destructured parameters (bug 1175394).
Interfaces/APIs/DOM
DOM & HTML DOM
No change.
IndexedDB
- A new feature called locale-aware sorting has been added allowing for the creation of indexes with a locale specified, which can then then be used to sort data according to the rules of that locale (bug 871846). This is a non-standard Firefox-specific feature.
Service Workers
- As per the specification, if
ExtendableEvent.waitUntil()
is called outside of theExtendableEvent
handler, Firefox will now throw anInvalidStateError
; in addition, multiple calls towaitUntil()
will now stack up, and the resulting promises will be added to the list of extend lifetime promises (bug 1189644).
WebRTC
- The
HTMLCanvasElement.captureStream()
method has been activated by default (bug 1177276).
New APIs
- The Permissions API is partially supported; to begin with, the
Permissions
interface is missing therequest()
andrevoke()
methods, but everything else is included (bug 1105827).
Miscellaneous
- The Battery Status API now uses the new promise syntax for
Navigator.getBattery()
, as specified in the recent evolution of the specificiation (bug 1050749). - The
User-Agent
header is no longer in the list of forbidden header names so it can now be set in a FetchHeaders
object, via XHRXMLHttpRequest.setRequestHeader()
,… (bug 1188932). - The
MediaRecorder.MediaRecorder()
constructor can now accept an options dictionary as a parameter, which allows you to set custom bitrates for the audio/video to be recorded (bug 1161276). - The
PerformanceObserver
interface, belonging to the Performance Timeline API has been implemented (bug 1165796). - The Frame Timing API has been added: the
PerformanceRenderTiming
andPerformanceCompositeTiming
interfaces are now availble (bug 1191178). - The modern Screen Orientation API has been implemented: unprefixed
Screen.orientation
and theScreenOrientation
interface are now available (bug 1131470). The non-standardScreen.mozOrientation
,Screen.onmozorientationchange
,Screen.mozLockOrientation()
, andScreen.mozUnlockOrientation()
will be removed in the future. - Under Linux, like under Windows,
Event.timeStamp
now returns aDOMHighResTimeStamp
(bug 1026803). - Experimental support for
Selection
eventsselectionchange
andselectstart
, as well as theDocument.onselectionchange
andGlobalEventHandlers.onselectstart
event handlers property has been added (bug 571294). This feature is controlled by thedom.select_events.enabled
preference, that defaults tofalse
. - Support for
MouseEvent.offsetX
andMouseEvent.offsetY
have been activated on Firefox for Android and Firefox OS (bug 1204841). - The
HTMLCanvasElement.mozFetchAsStream()
method has been removed (bug 1206030). - The constructor
Request()
as well asfetch()
will now raise aTypeError
exception when used with a URL containing a username and password (bug 1195820).
MathML
No change.
SVG
No change.
Audio/Video
No change.
HTTP
No change.
Networking
No change.
Security
- Access to Web Storage (i.e.
localStorage
andsessionStorage
) from third-party IFrames is now denied if the user has disabled third-party cookies (bug 536509). - This whitelist has even been removed in Nightly and Aurora/Dev Edition of the browser (bug 1201023). It is currently scheduled that this removal will also happen for Beta and Release versions for the next version (Firefox 44).
- Subresource integrity has been implemented for
<script>
and<link>
that doesn't link to stylesheets (bug 992096).
Other
Firefox now uses Mozilla Location Services (MLS) when determining location information at the user's request (for example when using the Geolocation API.)
Changes for add-on and Mozilla developers
Interfaces
No change
XUL
No change.
JavaScript code modules
No change.
XPCOM
No change.
Other
No change.
See also
Older versions
- Firefox 42 for developers
- Firefox 41 for developers
- Firefox 40 for developers
- Firefox 39 for developers
- Firefox 38 for developers
- Firefox 37 for developers
- Firefox 36 for developers
- Firefox 35 for developers
- Firefox 34 for developers
- Firefox 33 for developers
- Firefox 32 for developers
- Firefox 31 for developers
- Firefox 30 for developers
- Firefox 29 for developers
- Firefox 28 for developers
- Firefox 27 for developers
- Firefox 26 for developers
- Firefox 25 for developers
- Firefox 24 for developers
- Firefox 23 for developers
- Firefox 22 for developers
- Firefox 21 for developers
- 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