这篇翻译不完整。请帮忙从英语翻译这篇文章。
安装Firefox开发者版本,
以便测试Firefox最新的功能
Firefox 45,基于 Gecko 45, 将会在 March 2016 正式发布。本文记录了开发者们应该注意的,该版本的 Firefox 的各种变化。
针对网络开发者的功能更新
开发工具
没有功能更新.
HTML
- 现在可以在
<meta>
上直接设置内容安全策略(Content Security Policy)。 (bug 663570). - The attribute
referrer
has been renamed intoreferrerpolicy
on<image>
,<area>
,<a>
, and<iframe>
(bug 1187357). - Changes in the viewport, or a resize, now trigger the reselection of responsive images for
<img srcset>
(bug 1166138).
CSS
word-spacing
now allows percentage values (bug 1038663).- The
inline-start
andinline-end
values have been added tofloat
andclear
(bug 1122918). They are enabled by default on Nightly and Aurora (Dev edition), as well as on Firefox OS; to activate it on a release or beta version, you need to flip thelayout.css.float-logical-values.enabled
totrue
. - The
text-emphasis
,text-emphasis-style
,text-emphasis-color
, andtext-emphasis-position
have been implemented; they are disabled by default (setlayout.css.text-emphasis.enabled
to true to activate them (bug 1040668). - Alias -webkit-transform related CSS properties (bug 1179444).
- Support -webkit-min-device-pixel-ratio in CSS media queries (nonstandard version of "min-resolution") (bug 1176968).
- Remove pref layout.css.ruby.enabled (bug 1202940).
- [css-grid][css-flexbox] Implement grid/flex layout for <fieldset> (bug 1230207).
- Support -webkit-box styling, as aliases for modern CSS flexbox (behind a pref) (bug 1208635).
- Our implementation of CSS Grids has been improved and is no more considered experimental; it is now activated by default (bug 1000592):
- Gutters, that is the
grid-column-gap
,grid-row-gap
, andgrid-gap
properties are now supported (bug 1176792). - The implied minimum size of grid Items, that is the special
min-width
andmin-height
auto
behavior has been implemented (bug 1176775). align-self
andjustify-self
are now supported on grid layouts (bug 1151213).align-content
andjustify-content
are now supported on grid layouts (bug 1151214).
- Gutters, that is the
JavaScript
- ES2015 (ES6) Classes are now enabled by default (bug 1197932).
- Expression closures are deprecated and will now present a warning in the console (bug 995610).
String.prototype.replace
does not restore RegExp static properties after executing function parameter anymore (bug 1226936).Math.random()
has been updated to the better XorShift128+ algorithm (bug 322529).
Interfaces/APIs/DOM
DOM & HTML DOM
- For compatibility the non-standard property
Node.innerText
has been implemented (bug 264412). - <img srcset> now reacts to resize/viewport changes (bug 1166138).
WebGL
Our implementation of WebGL2 have been extended:
- Support of programs and shaders has been added (bug 1048743).
- Support for uniforms and attributes has been added (bug 1048745).
- Framebuffer objects have been implemented (bug 1048732).
- Renderbuffer objects have been implemented (bug 1048733).
IndexedDB
No change.
Service Workers
Clients.get()
andFetchEvent.clientId
have been implemented (bug 1222464.)Clients.openWindow()
has been implemented (bug 1172870.)- The options object that can be passed as a parameter when invoking
Clients.matchAll()
can now include anincludeUncontrolled
property. This is aBoolean
— if set totrue
, the matching operation will return all service worker clients who share the same origin as the current service worker. Otherwise, it returns only the service worker clients controlled by the current service worker. The default isfalse
.
WebRTC
No change.
New APIs
No change.
Miscellaneous
- Web Speech Synthesis API has been implemented on Firefox Desktop (bug 1003439).
- The
Window.onstorage
event handler property has been added. - The interface
ComputedTiming
have been added to our experimental implmenation of Web Animations API (bug 1108055). - The
Document.onselectionchange
event handler property has been added (bug 1231193). - The
Performance.translateTime()
has been implemented (bug 1169068).
MathML
No change.
SVG
- SVG stroke hit-testing is buggy when cairo is the Moz2D backend (bug 676001).
- Unable to interact with elements who have large transform / translate values (bug 1217012).
Audio/Video
- Fixed: Regression (since Firefox 41) whereby audio playback was stuttering due to duration time rounding errors (bug 1222866.)
HTTP
No change.
Networking
No change.
Security
- Support of the
child-src
CSP policy directive has been implemented (bug 1045891). - EV certificates with a validity greater than 27 months are now considered and handled as DV certificates (bug 1222903).
Changes for add-on and Mozilla developers
Interfaces
No change.
XUL
- Tab Groups have been removed.
JavaScript code modules
No change.
XPCOM
No change.
Other
- WebIDL constructors could be called without the
new
operator in chrome context.. Now such code will raise aTypeError
like in Web content since Firefox 30. For example,var req = XMLHttpRequest();
need to bevar req = new XMLHttpRequest();
.
See also
Older versions
- Firefox 44 for developers
- Firefox 43 for developers
- 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