files/en-us/mozilla/firefox/releases/41/index.md
To test the latest developer features of Firefox, install Firefox Developer Edition Firefox 41 was released on September 22, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers.
Highlights:
All devtools bugs fixed between Firefox 40 and Firefox 41: note that many of these bugs, especially those relating to the performance tools, were uplifted to Firefox 40.
Support for laying out vertical scripts has been activated by default (Firefox bug 1138384). That means that the following CSS properties are now available:
offset-block-start, offset-block-end, offset-inline-start and offset-inline-end.Support the {{cssxref("transform-origin")}} property in SVG and implement the {{cssxref("transform-box")}} property (Firefox bug 923193).
href attribute is no longer classified as interactive content. Clicking it inside {{HTMLElement("label")}} will activate labelled content (Firefox bug 1167816).crossorigin attribute is now supported for <link rel='preconnect'> (Firefox bug 1174152).Date.prototype is now an ordinary object, not a {{jsxref("Date")}} instance anymore (Firefox bug 861219).Map[Symbol.species] and Set[Symbol.species] getters have been added (Firefox bug 1131043).([a, b]) = [1, 2] or ({a, b}) = { a: 1, b: 2 }, are now considered invalid and will throw a {{jsxref("SyntaxError")}}. See Jeff Walden's blog post for more details.new.target syntax has been added (Firefox bug 1141865).'paste' command as argument, {{domxref("Document.queryCommandSupported()")}} now returns false if has insufficient privileges to actually perform the action (Firefox bug 1161721).'cut' or 'copy' command as argument, {{domxref("Document.queryCommandSupported()")}} now returns true if called within the context of a user-initiated or privileged code (Firefox bug 1162952).'cut' or 'copy' command as argument, {{domxref("Document.execCommand()")}} now works, but only within the context of user-initiated or privileged code (Firefox bug 1012662).initCloseEvent() method of the {{domxref("CloseEvent")}} event and the ability to create a {{domxref("CloseEvent")}} using the {{domxref("Document/createEvent", "document.createEvent('CloseEvent')")}} method has been removed; use the standard constructor, {{domxref("CloseEvent.CloseEvent", "CloseEvent()")}} instead (Firefox bug 1161950).ECDH keys (Firefox bug 1050175).CanvasCaptureMediaStream have been added and allow to stream the display of a {{HTMLElement("canvas")}} in real-time (Firefox bug 1032848).none (Firefox bug 1163124).Improvement to our experimental Service Worker implementation:
The {{domxref("CacheStorage")}} and {{domxref("Cache")}} interfaces are now supported (Firefox bug 1110144).
failIfMajorPerformanceCaveat WebGL context attribute has been added and can be set when creating a WebGL context with {{domxref("HTMLCanvasElement.getContext()")}} to indicate if a context creation should fail if the system performance is low (Firefox bug 1164970).true, unless "Work offline" mode was selected) before (Firefox bug 654579).DOMRequest and DOMCursor are now available in Web workers (Firefox bug 1167650).Mathematical formulas require special fonts. So far, these fonts were hard-coded in the mathml.css user agent stylesheet (which sets the font-family on {{MathMLElement("math")}} tag) and in the preference option font.mathfont-family (which sets the fallback fonts to use for stretchy and large operators). Firefox 41 introduces an internal x-math language that is automatically set on the <math> tag as well as corresponding preference options (e.g., font.name.serif.x-math). The user agent stylesheet now sets font-family to serif on the <math> tag and the preference option font.mathfont-family is replaced with font.name.serif.x-math. All platforms now essentially use the same list of fallback fonts, with "Latin Modern Math" as the first one. The default/fallback fonts can be configured from the standard per-language font preference menu. For more details, see Firefox bug 947654 and Firefox bug 1160456.
media.autoplay.enabled preference now also applies to untrusted {{domxref("HTMLMediaElement.play()")}} invocations too, that is calls from non-users activated scripts (Firefox bug 659285).X-Content-Duration header is no longer supported (Firefox bug 1160695).manifest-src directive is now supported (Firefox bug 1089255).origin-when-cross-origin to be spelled origin-when-crossorigin. This has been corrected to include the missing dash character.No change.
No change.
No change.
CanvasRenderingContext2D.drawWidgetAsOnScreen(). This API uses the operating system to snapshot the widget on-screen. For more details see Firefox bug 1167477.