Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/mozilla/firefox/releases/19/index.md
6581 views
---
title: Firefox 19 for developers slug: Mozilla/Firefox/Releases/19
---

{{FirefoxSidebar}}

Firefox 19 was released on February 19, 2013. 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.

Changes for Web developers

JavaScript

CSS

  • Support for the viewport-relative {{cssxref("<length>")}} units, vh, vw, vmin, and vmax, has landed (Firefox bug 503720)

  • CSS Flexbox has been unprefixed, but remains disabled by default (Firefox bug 801098).

  • The -moz-initial value has been unprefixed (Firefox bug 806068). -moz-initial will be kept for a while as an alias; however, authors are strongly encouraged to switch over to initial.

  • The CSS {{cssxref("text-transform")}} property now supports the full-width keyword, which allows a more seamless inclusion of Latin characters in text using ideographic fixed-width characters, like Chinese or Japanese (Firefox bug 774560).

  • The CSS {{cssxref("page-break-inside")}} has been implemented (Firefox bug 685012).

  • The CSS {{cssxref("calc", "calc()")}} function can now be used on <color-stop> (on {{cssxref("<gradient>")}}).

  • The CSS {{cssxref("@page")}} at-rule is now supported (Firefox bug 115199). Note that the pseudo-classes {{cssxref(":first")}}, {{cssxref(":right")}}, and {{cssxref(":left")}} are not yet implemented.

  • The :-moz-placeholder pseudo-class is replaced by the ::-moz-placeholder pseudo-element (Firefox bug 737786).

  • Declarations qualified with !important appearing in {{cssxref("@keyframes")}} are now ignored, per spec (Firefox bug 784466).

DOM/APIs

  • The {{domxref("Element.getElementsByTagName")}}, {{domxref("Element.getElementsByTagNameNS")}} and {{domxref("Element.getElementsByClassName")}} methods now return a live {{domxref("HTMLCollection")}} (Firefox bug 799464).

  • The {{domxref("File")}} mozLastModifiedDate property has been implemented. (Firefox bug 793955)

  • The {{domxref("File")}} lastModifiedDate property returns the current date, when the date of the last modification is unknown. (Firefox bug 793459

  • The {{domxref("CanvasRenderingContext2D")}} isPointInStroke method has been implemented (Firefox bug 803124).

  • The {{domxref("HTMLCanvasElement")}} toBlob method has been implemented (Firefox bug 648610).

  • The {{domxref("Node.isSupported")}} and the {{domxref("document.implementation", "document.implementation.hasFeature()")}} methods have been changed to always return true (Firefox bug 801425).

  • When calling document.createElement(null), null will now be stringified and works like document.createElement("null").

  • The {{domxref("TextDecoder")}} and {{domxref("TextEncoder")}} interfaces have been updated to match the latest spec (Firefox bug 801487).

XForms

Support for XForms has been removed in Firefox 19.

Changes for add-on and Mozilla developers

Note: A key change in Firefox 19 is that nsresult is now strongly typed. This will help make it easier to detect bugs that are caused by mishandling of return values, but may cause existing code to break if it's making incorrect assumptions in this regard.

  • getBrowserSelection() now returns the selected text in a text input field. As a result, gContextMenu.isTextSelected will be true when the user selects text in a text input field that is not a password field. (Firefox bug 565717)

  • Dict.jsm: Dict() now takes a JSON String. Dict.toJSON() was added, and it returns a JSON String. (Firefox bug 727967)

Interface changes

  • nsIImgLoadingContent

    • : The parameter (aObserver) of addObserver() method changes from imgIDecoderObserver to imgINotificationObserver. The notify() method of imgINotificationObserver is not scriptable, so you need to use createScriptedObserver() from imgITools.

  • nsIChannel

    • : The property contentLength changed from long to int64_t.

See also

Older versions

{{Firefox_for_developers('18')}}