files/en-us/mozilla/firefox/releases/42/index.md
To test the latest developer features of Firefox, install Firefox Developer Edition Firefox 42 was released on November 3, 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 41 and Firefox 42.
-moz-margin-start are now aliases of their standard counterpart ({{cssxref('margin-inline-start')}}, …). Previously, it was the opposite. This affects the value returned by {{domxref('CSSStyleDeclaration.cssText')}} and iteration of the properties in a style rule, which both use the canonical form (Firefox bug 1118103).layout.css.prefixes.gradients preference to false.referrer attribute of the {{HTMLElement("img")}} (Firefox bug 1166910), {{htmlElement("iframe")}} (Firefox bug 1175736), {{HTMLElement("a")}} and {{HTMLElement("area")}} (Firefox bug 1174913) has been added. There is no effect by default, the network.http.enablePerElementReferrer being false by default.Images with an id are no more listed as property of the {{domxref("Window")}} interface: `` isn't accessible as window.login anymore. This behavior was introduced in Firefox 26 and has been removed to match a later change in the spec. (Firefox bug 959992)
{{domxref('MouseEvent.offsetX')}} and {{domxref('MouseEvent.offsetY')}} have been added (Firefox bug 69787).
The {{domxref("HTMLInputElement")}} interface has been experimentally extended to handle the upload of directories (Firefox bug 1164310). These four members can be exposed by setting the dom.input.dirpicker preference to true:
HTMLInputElement.directoryHTMLInputElement.isFilesAndDirectoriesSupportedHTMLInputElement.getFilesAndDirectories()HTMLInputElement.chooseDirectory()The {{domxref("Directory")}} interface has been experimentally extended (Firefox bug 1177688). The two members {{domxref("Directory.path")}} and Directory.getContents can be exposed by setting the dom.input.dirpicker preference to true.
The HTMLMediaElement.mozSrcObject has been renamed in {{domxref('HTMLMediaElement.srcObject')}} (Firefox bug 1175523).
Request.context has been removed (Firefox bug 1188062).dom.push.enabled pref in about:config.Our experimental implementation of Web Animations API have been extended to support:
Our experimental implementation of the Shadow DOM has been modified:
DataCloneError exception (Firefox bug 1176757).NotSupportedError {{domxref("DOMException")}} (Firefox bug 1177914).HierarchyRequestError {{domxref("DOMException")}} (Firefox bug 1177991).webgl2 instead of experimental-webgl2 (Firefox bug 1187174).RTCOfferOptions, has been updated to more closely match the specification. Among other changes, it is now based upon the RTCOfferAnswerOptions dictionary, which provides the voiceActivityDetection option.RTCAnswerOptions dictionary has been added. This is the type used for the options parameter to {{DOMxRef("RTCPeerConnection.createAnswer", "createAnswer()")}}.RTCICECandidatePairStats.mozPriority has been renamed to {{domxref('RTCICECandidatePairStats.priority')}} (Firefox bug 1184426).Window.mozRequestAnimationFrame() has been removed (Firefox bug 909154). Use the standard {{domxref('Window.requestAnimationFrame()')}} instead.media.webspeech.synth.enabled flag in about:config (Firefox bug 1003457.) See Web Speech API for more information.No change.
No change.
No change.
upgrade-insecure-requests directive has been implemented (Firefox bug 1139297).TYPE_EMBED constant has been added to nsIContentPolicy to allow Gecko internals and add-on code to better differentiate different types of requests. Previously, TYPE_OBJECT was used for these cases (Firefox bug 1148030).TYPE_SUBDOCUMENT constants has been split into TYPE_FRAME and TYPE_IFRAME (Firefox bug 1148044).No change.
No change.
No change.
No change.