---
title: Firefox 23 for developers
slug: Mozilla/Firefox/Releases/23
tags:
- Firefox
- Firefox 23
translation_of: Mozilla/Firefox/Releases/23
---
{{FirefoxSidebar}}
Web开发者需要注意的变化
HTML
- Mixed content blocking. Firefox will no longer load non-secure (http) resources on secure (https) pages ({{bug(834836)}}).
- The standard syntax of CSP 1.0 policies are now implemented and enforced by default.
JavaScript
- The
Object.defineProperty method can now be used to redefine the lengthproperty of an Array object.
- The option to disable JavaScript, including the options to allow moving windows/replace context menu, have been removed. You may still disable JavaScript by double clicking the "javascript.enabled" option in about:config.
HTML
- The {{HTMLElement("blink")}} element support is now completely dropped. The
<blink> tag now implements the {{domxref("HTMLUnknownElement")}} interface ({{bug(857820)}}).
- The
range type of the {{HTMLElement("input")}} element (<input type="range">) has been switched on by default ({{bug(841950)}}).
DOM
- D3E
KeyboardEvent.key 现在只支持不可打印字符所在的键({{bug(842927)}}).
- {{domxref("DOMImplementation.createHTMLDocument")}}方法的
title参数成为可选的(根据最新规范).
- The ability to add a sidebar panel (
window.sidebar.addPanel) has been dropped ({{bug(691647)}}).
- The unprefixed {{domxref("Window.requestAnimationFrame")}} and {{domxref("Window.cancelAnimationFrame")}} methods has been added ({{bug(704063)}}). The unprefixed {{domxref("Window.requestAnimationFrame")}} receives a {{domxref("DOMHighResTimeStamp")}} as argument; the prefixed version did, and still is, received a {{domxref("DOMTimeStamp")}}({{bug(753453)}}).
- The text argument for {{domxref("window.alert")}} and {{domxref("window.confirm")}} is now optional ({{bug(861605)}}).
- The {{domxref("HTMLMediaElement.initialTime")}} property, removed from the spec, is no more supported ({{bug(742537)}}).
- The {{domxref("AnimationEvent.AnimationEvent", "AnimationEvent()")}} constructor has been added ({{bug(848293)}}).
- The {{domxref("AnimationEvent.pseudoElement")}} property has been implemented ({{bug(848293)}}).
- The {{domxref("TransitionEvent.TransitionEvent", "TransitionEvent()")}} constructor has been added ({{bug(848291)}}).
- The {{domxref("TransitionEvent.pseudoElement")}} property has been implemented ({{bug(848291)}}).
- The non-standard {{domxref("TransitionEvent.initTransitionEvent()")}} and {{domxref("AnimationEvent.initAnimationEvent()")}} have been removed ({{bug(868751)}}).
CSS
- CSS属性
text-decoration: blink;带来的闪烁效果被删除({{bug(857820)}}).
- In-flow {{cssxref("::after")}} and {{cssxref("::before")}} pseudo-elements are now flex items ({{bug(867454)}}).
- The way to compute viewport units has been changed. In conjunction with
overflow:auto, space taken by eventual scrollbars is not substracted from the viewport, whereas in the case of overflow:scroll, it is. ({{bug(811403)}})
WebRTC
- Instead of including usernames in the {{domxref("RTCIceServer.url")}} property (such as stun:username@stunserver.example.com), you now need to use the new {{domxref("RTCIceServer.username")}} property.
MathML
- {{MathMLElement("mspace")}}元素开始支持负数宽度 ({{bug(717546)}}).
- The {{MathMLElement("semantics")}} element now determines the visible child as described in the MathML3 specification.
Changes for addon and Mozilla developers
Addons that overlay chrome://browser/content/debugger.xul must now overlay chrome://browser/content/devtools/debugger.xul. You may add references to both these files in chrome.manifest for compatibility.
See also
之前版本
{{Firefox_for_developers('22')}}