files/en-us/mozilla/firefox/releases/19/index.md
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.
Map and Set objects have changed from having a size() method to a size property (Firefox bug 807001)Map and Set objects also have a clear() method now. (Firefox bug 805003)vh, vw, vmin, and vmax, has landed (Firefox bug 503720)-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.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).<color-stop> (on {{cssxref("<gradient>")}}).:-moz-placeholder pseudo-class is replaced by the ::-moz-placeholder pseudo-element (Firefox bug 737786).!important appearing in {{cssxref("@keyframes")}} are now ignored, per spec (Firefox bug 784466).mozLastModifiedDate property has been implemented. (Firefox bug 793955)isPointInStroke method has been implemented (Firefox bug 803124).toBlob method has been implemented (Firefox bug 648610).Node.isSupported and the {{domxref("document.implementation", "document.implementation.hasFeature()")}} methods have been changed to always return true (Firefox bug 801425).document.createElement(null), null will now be stringified and works like document.createElement("null").Support for XForms has been removed in Firefox 19.
[!NOTE] A key change in Firefox 19 is that
nsresultis 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() now takes a JSON String. Dict.toJSON() was added, and it returns a JSON String. (Firefox bug 727967)nsIImgLoadingContent
addObserver() method changes from imgIDecoderObserver to imgINotificationObserver. The notify() method of imgINotificationObserver is not scriptable, so you need to use createScriptedObserver() from imgITools.nsIChannel
contentLength changed from long to int64_t.