Site Compatibility for Firefox 26

Firefox 26 was released on . While it has been developed to maintain compatibility as much as possible, the new version includes some changes affecting backward compatibility aimed at improving interoperability with the other browsers or following the latest Web standards. Here's the list of such changes — hope this helps whenever you test your sites or applications.

This article only explains the changes that may affect backward compatibility for websites. For the other new features and changes, please read the following documents:

Follow @MozWebCompat on Twitter for further updates.

CSS

The non-standard -moz-text-blink property has been removed. Instead, the standard, still prefixed text-decoration-line property now takes blink as a valid value. Actually it doesn't blink any content on Firefox though, from the perspective of accessibility. Note that the blink effect with text-decoration:blink has been dropped with Firefox 23.

DOM

HTMLInputElement.width and height now return 0 when the type is not image

Previously, the width and height properties of an <input> returned the dimension of the element. To comply with the spec, those properties now return 0 if the type attribute is not image.

Setting document.domain in a sandboxed iframe is no longer allowed

Trying to set the document.domain property on a page embedded in an <iframe> with the sandbox attribute will throw a security error from now on.

Elements are no longer accessible with the old id after being changed

Elements with id are accessible as window.<id> DOM objects. Previously, such objects remained on window even after the id of the element was programmatically changed. This odd behavior has been fixed with Firefox 26. The document.getElementById method, which is recommended to use in general, is not affected by this change.

MessageEvent has been updated

The MessageEvent interface has been updated to comply with the latest spec. The initMessageEvent method has been removed while the interface is now a constructor.

HTMLCanvasElement.mozGetAsFile has been deprecated

The non-standard mozGetAsFile method on the HTMLCanvasElement interface is now deprecated and will be removed soon. The standard toBlob method can be used instead.

UserDataHandler has been removed

The deprecated UserDataHandler interface has been removed. The Node.setUserData and Node.getUserData methods have already been removed with Firefox 22.

The following methods implemented on the XBL DOM interface have been removed from the Document interface: getAnonymousNodes, getAnonymousElementByAttribute, getBindingParent, and loadBindingDocument.

Various non-standard interfaces have been removed

As part of the ongoing effort to standardize global objects, the following non-standard XUL-related interfaces have been removed: ChromeWindow, XULButtonElement, XULCheckboxElement, XULCommandDispatcher, XULCommandEvent, XULControlElement, XULDocument, XULElement, XULLabeledControlElement, and XULPopupElement.

JavaScript

The reserved words are no longer allowed as function names

The reserved words cannot be used for function names. Starting with Firefox 26, such a usage will throw a SyntaxError. For example, function delete() { ... } is illegal.

Plug-ins

All plug-ins except Flash now default to Click-to-Activate

Starting with Firefox 26, plug-ins require user interaction to be activated. With the exception of the popular Adobe Flash Player, all plug-in content embedded in a Web page is now disabled by default and enabled by a user's click. This change has been made in order to improve security and performance of the browser. See the Mozilla Security Blog and the Future Releases Blog for details. Web developers are encouraged to leverage modern Web technologies, including HTML5, to provide richer user experience. If that is not possible, see the site author guide for click-to-activate plugins.

Miscellaneous

A minimum width has been set for the browser window

To avoid a potential UI clipping issue with the upcoming Australis theme, a minimum width has been set for the Firefox desktop browser window. This size is 425px on OS X and 390px on other platforms. If you were resizing the window to test your mobile site, the convenient Responsive Design View can be used instead. The minimum width is not applied to popup windows, so this shouldn't affect content display.

Update: This change has been reverted in Firefox 27 and 28 since it was intended only for the Australis theme. Firefox 29 will come with Australis and this limitation.

Document Tags and Contributors

Contributors to this page: Benjamin Smedberg, kscarfone, Yoshino
Last updated by: Yoshino,