---
title: Firefox 32 for developers
slug: Mozilla/Firefox/Releases/32
tags:
- Firefox
- Firefox 31
translation_of: Mozilla/Firefox/Releases/32
---
{{FirefoxSidebar}}
普通 Web 开发者应该注意的变化
开发者工具
Highlights:
All devtools bugs fixed between Firefox 31 and Firefox 32.
CSS
- 默认开启 {{cssxref("mix-blend-mode")}} ({{Bug(952643)}})。
- 在正式版本中默认开启
position:sticky
(之前只在 Nightly 和 Aurora 版本中才会开启) ({{Bug(916315)}})。
- implement box-decoration-break: Left/right part of a box-shadow should only be drawn on the first/last continuation of an inline box ({{Bug(613659)}}).
- 允许 {{cssxref("flex-grow")}} / {{cssxref("flex-shrink")}} 在 0 和非 0 值之间作 transition , like 'flex-grow: 0.6'({{Bug(996945)}}).
HTML
- Experimentally implemented, behind a pref, {{HTMLElement("img")}} {{HTMLattrxref("srcset", "img")}} property, To activate it set
dom.image.srcset.enable
to true
({{Bug(870021)}}).
- id and class are now true global attributes and also apply to XML elements, in a namespace or not ({{bug(741295)}}).
JavaScript
- The following new ECMAScript 2015 built-in methods got implemented:
- {{jsxref("Array.from()")}} ({{bug(904723)}}),
- {{jsxref("Array.prototype.copyWithin()")}} ({{bug(934423)}}),
- {{jsxref("Number.isSafeInteger()")}} ({{bug(1003764)}}).
Interfaces/APIs/DOM
- 实现了 {{domxref("NavigatorLanguage.languages", "navigator.languages")}} 属性和 languagechange 事件。 ({{Bug(889335)}})。
- The {{domxref("Navigator.vibrate()")}} method behavior has been adapted to the latest specification: too long vibrations are now truncated ({{bug(1014581)}}).
- {{domxref("KeyboardEvent.getModifierState")}}() 和 {{domxref("MouseEvent.getModifierState")}}() 支持了 "Accel" 虚拟修饰符 ({{Bug(1009388)}})。
- 实现了 {{domxref("KeyboardEvent.code")}} 属性,不过目前在正式版本中还是禁用状态 ({{Bug(865649)}})。
- Scoped selectors for {{domxref("Document.querySelector()")}} and {{domxref("Document.querySelectorAll()")}}, for example
querySelector(":scope > li")
have been implemented ({{Bug(528456)}}).
- The experimental implementation of the {{domxref("Document.timeline")}} interface, related to the Web Animation API, has been added ({{bug("998246")}}). It is controlled by
layout.web-animations.api.enabled
preference, enabled only on Nightly and Aurora for the moment.
- The Data Store API has been made available to Web Workers ({{bug("949325")}}). It still is only activated for certified applications.
- The ServiceWorker {{domxref("InstallPhaseEvent")}} and {{domxref("InstallEvent")}} interfaces have been implemented ({{ Bug("967264") }}).
- The MSISDN Verification API, only activated for privileged apps, has been added ({{ Bug("988469") }}).
- The Gamepad API is now supported on Firefox for Android ({{bug(852935)}}).
- To match the spec and the evolution of the CSS syntax, minor changes have been done to {{domxref("CSS.escape()")}}. The identifier now can begins with
'--'
and the second dash must not be escaped. Also vendor identifier are no more escaped. ({{bug(1008719)}})
- To complete our Hit Regions implementation, {{domxref("MouseEvent.region")}} has been implemented ({{bug(979692)}}).
- The {{domxref("CanvasRenderingContext2D.drawFocusIfNeeded()")}} method is now enabled by default ({{bug(1004579)}}).
- The {{domxref("Navigator.doNotTrack")}} properties now returns
'1'
or '0'
, reflecting the HTTP value, instead of 'yes'
or 'no'
({{bug(887703)}}).
- XMLHttpRequest.responseURL was implemented ({{bug(998076)}}).
MathML
- 实现了 menclose 标记
phasorangle
。
SVG
No change.
WebRTC
- New constraints for WebRTC's {{domxref("NavigatorUserMedia.getUserMedia", "getUserMedia()")}},
width
, height
, and framerate
, have been added, to limit stream dimensions and frame rate ({{bug("907352")}}):
{
mandatory: {
width: { min: 640 },
height: { min: 480 }
},
optional: [
{ width: 650 },
{ width: { min: 650 }},
{ frameRate: 60 },
{ width: { max: 800 }},
]
}
- WebRTC methods which previously used callback functions as input parameters are now also available using JavaScript promises.
Audio/Video
No change.
Security
附加组件 和 Mozilla 开发者应该注意的变化
Xray vision is now applied to JavaScript objects that are not themselves DOM objects: Xrays for JavaScript objects.
A getDataDirectory()
method has been added to Addon
instances. This method returns the preferred location, within the current profile, for add-ons to store data.
Add-on SDK
Highlights
Details
GitHub commits made between Firefox 31 and Firefox 32. This will not include any uplifts made after this release entered Aurora.
Bugs fixed between Firefox 31 and Firefox 32. This will not include any uplifts made after this release entered Aurora.
XPCOM
- The {{interface("nsIUDPSocket")}} interface now provides multicast support through the addition of the new {{ifattribute("nsIUDPSocket", "multicastLoopback")}}, {{ifattribute("nsIUDPSocket", "multicastInterface")}}, and {{ifattribute("nsIUDPSocket", "multicastInterfaceAddr")}} attributes, as well as the {{ifmethod("nsIUDPSocket", "joinMulticast")}} and {{ifmethod("nsIUDPSocket", "leaveMulticast")}} methods.
相关链接
Older versions
{{Firefox_for_developers('31')}}