Firefox 41 pour développeurs
Changements pour les développeurs Web
Outils pour Développeurs
Nouveautés:
- Take a screenshot of a DOM node
- Copy as HAR/save as HAR
- "Add Rule" button in the Rules view
- View source in a tab
- More options to copy CSS rules
- Copy image as data: URI in the Rules view
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.
CSS
- Support for laying out vertical scripts has been activated by default (bug Firefox 1138384). That means that the following CSS properties are now available:
    - Choosing the direction of writing: writing-mode.
- Controlling orientation of characters: text-orientation.
- Direction-independent equivalents of widthandheight:block-sizeandinline-size.
- Direction-independent equivalents of min-widthandmin-height:min-block-sizeandmin-inline-size.
- Direction-independent equivalents of max-widthandmax-height:max-block-sizeandmax-block-size.
- Direction-independent equivalents of margin-top,margin-right,margin-bottomandmargin-left:margin-block-start,margin-block-end,margin-inline-startandmargin-inline-end.
- Direction-independent equivalents of padding-top,padding-right,padding-bottomandpadding-left:padding-block-start,padding-block-end,padding-inline-startandpadding-inline-end.
- Direction-independent equivalents of border-top,border-right,border-bottomandborder-leftand their longhands for width, style and color:border-block-start,border-block-start-width,border-block-start-style,border-block-start-color,border-block-end,border-block-end-width,border-block-end-style,border-block-end-color,border-inline-start,border-inline-start-width,border-inline-start-style,border-inline-start-color,border-inline-end,border-inline-end-width,border-inline-end-styleandborder-inline-end-color.
- Direction-independent equivalents of top,right,bottomandleft:offset-block-start,offset-block-end,offset-inline-startandoffset-inline-end.
 
- Choosing the direction of writing: 
HTML
- <a>without an- hrefattribute is no longer classified as interactive content. Clicking it inside- <label>will activate labelled content (bug Firefox 1167816).
- SVG icons are now supported for site icons, that is favicons and shortcut icons (bug Firefox 366324).
- The crossoriginattribute is now supported for <link rel='preconnect'> (bug Firefox 1174152).
JavaScript
- Date.prototype(en-US) is now an ordinary object, not a- Dateinstance anymore (bug Firefox 861219).
- Date.prototype.toStringis now a generic method (bug Firefox 861219).
- Symbol.specieshas been added (bug Firefox 1131043).
- Map[@@species]and- Set[@@species]getters have been added (bug Firefox 1131043).
- Non-standard let expression support has been dropped (bug Firefox 1023609).
- Destructured parameters with default value assignment are now supported (bug Firefox 1018628).
- Per ES6, curly braces are required for method definitions. Syntax without them will fail from now on (bug Firefox 1150855).
- Method definitions (except for generator methods) are not constructable anymore (bug Firefox 1059908 and bug Firefox 1166950).
- As part of ES6 specification compliance, parenthesized destructuring patterns, like ([a, b]) = [1, 2]or({a, b}) = { a: 1, b: 2 }, are now considered invalid and will throw aSyntaxError. See Jeff Walden's blog post for more details.
- The new.targetsyntax has been added (bug Firefox 1141865).
Interfaces/APIs/DOM
HTML Editing API
- Cut, copy and paste commands handling has been revamped and now allow programmatic copying and cutting from JS for Web content:
    - With the 'paste'command as argument,Document.queryCommandSupported()now returnsfalseif has insufficient privileges to actually perform the action (bug Firefox 1161721).
- With the 'cut'or'copy'command as argument,Document.queryCommandSupported()now returnstrueif called within the context of a user-initiated or privileged code (bug Firefox 1162952).
- With the 'cut'or'copy'command as argument,Document.execCommand()now works, but only within the context of user-initiated or privileged code (bug Firefox 1012662).
 
- With the 
Events
- The non-standard CloseEvent.initCloseEvent()(en-US) method and the ability to create aCloseEventusing theEvent.createEvent('CloseEvent')method has been removed; use the standard constructor,CloseEvent()(en-US) instead (bug Firefox 1161950).
- On Desktop, PointerEventis now activated by default in Nightly; it is not activated in Developer Edition, Beta or Release and won't be for at least some versions (bug Firefox 1166347).
- The unprefixed version of MouseEvent.movementX(en-US) andMouseEvent.movementY(en-US)}} have been added; the prefixed versions are deprecated and will be removed at some point in the future (bug Firefox 1164981).
Web Crypto
- SubtleCrypto.importKey()(en-US) and- SubtleCrypto.exportKey()(en-US) now supports- ECDHkeys (bug Firefox 1050175).
Canvas API
- HTMLCanvasElement.captureStream()(en-US) and- CanvasCaptureMediaStream(en-US) have been added and allow to stream the display of a- <canvas>in real-time (bug Firefox 1032848).
- MediaStream.id(en-US) now returns the unique id of a stream (bug Firefox 1089798).
- The initial value of CanvasRenderingContext2D.filter(en-US) is now correctly set tonone(bug Firefox 1163124).
Service Workers
- Improvement to our experimental Service Worker (en-US) implementation:
    - ServiceWorkerGlobalScope.skipWaiting()(en-US) has been implemented (bug Firefox 1131352).
- Clients.claim()has been added (bug Firefox 1130684).
- The other functional events of Service Workers have been made to inherit from ExtendableEvent, giving them access to thewaitUntil()(en-US) method (bug Firefox 1160527).
 
- The CacheStorageandCacheinterfaces are now supported (bug Firefox 1110144).
Miscellaneous
- On OS X and Windows, Navigator.onLinenow changes regarding network connectivity (it always returnedtrue, , unless "Work offline" mode was selected) before (bug Firefox 654579).
- MessagePort(en-US) and- MessageChannel(en-US) now available in Web workers, and are enabled by default in all contexts (bug Firefox 952139) and (bug Firefox 911972).
- The User Timing API is now available in Web workers (bug Firefox 1155761).
- The Notifications API is now available in Web workers (bug Firefox 916893).
- DOMRequestand- DOMCursorare now available in Web workers (bug Firefox 1167650).
- The CSS Font Loading API (en-US) is now enabled by default (bug Firefox 1149381).
- Shared workers can no longer be shared between private (i.e. browsing in a private window) and non-private documents (see bug Firefox 1177621).
- The URLUtilsSearchParams.searchParamsproperty is now read-only (bug Firefox 1174731).
- The URLUtils.hashproperty no longer decodes URL fragment (bug Firefox 1093611).
MathML
New default and fallback font handling
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 <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 first one. The default/fallback fonts can be configured from the standard per-language font preference menu. For more details, see bug Firefox 947654 and bug Firefox 1160456.
SVG
- Site icons (favicons, shortcut icons) now support SVG (bug Firefox 366324).
Audio/Video
- The media.autoplay.enabledpreference now also apply to untrustedHTMLMediaElement.play()invocations too, that is calls from non-users activated scripts (bug Firefox 659285).
HTTP
- The X-Content-Durationheader is no longer supported (bug Firefox 1160695).
Networking
pas de changement.
Security
- The CSP (en-US) 1.1 manifest-srcdirective (en-US) is now supported (bug Firefox 1089255).
Changes for add-on and Mozilla developers
XUL
pas de changement.
JavaScript code modules
pas de changement.
XPCOM
Interfaces
pas de changement.
Other
pas de changement.
Voir aussi
Older versions
- Firefox 40 pour les développeurs
- Firefox 39 pour les développeurs
- Firefox 38 pour les développeurs
- Firefox 37 pour les développeurs
- Firefox 36 pour les développeurs
- Firefox 35 pour les développeurs
- Firefox 34 pour les développeurs
- Firefox 33 pour les développeurs
- Firefox 32 pour les développeurs
- Firefox 31 pour les développeurs
- Firefox 30 pour les développeurs
- Firefox 29 pour les développeurs
- Firefox 28 pour les développeurs
- Firefox 27 pour les développeurs
- Firefox 26 pour les développeurs
- Firefox 25 pour les développeurs
- Firefox 24 pour les développeurs
- Firefox 23 pour les développeurs
- Firefox 22 pour les développeurs
- Firefox 21 pour les développeurs
- Firefox 20 pour les développeurs
- Firefox 19 pour les développeurs
- Firefox 18 pour les développeurs
- Firefox 17 pour les développeurs
- Firefox 16 pour les développeurs
- Firefox 15 pour les développeurs
- Firefox 14 pour les développeurs
- Firefox 13 pour les développeurs
- Firefox 12 pour les développeurs
- Firefox 11 pour les développeurs
- Firefox 10 pour les développeurs