• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
Firefox
  1. MDN
  2. Mozilla
  3. Firefox
  4. Firefox developer release notes
  5. Firefox 31 for developers

Firefox 31 for developers

In This Article
  1. Changes for Web developers
    1. Developer Tools
    2. CSS
    3. HTML
    4. JavaScript
    5. Interfaces/APIs/DOM
    6. MathML
    7. SVG
    8. Audio/Video
  2. Security
  3. Changes for add-on and Mozilla developers
    1. Add-on SDK
  4. See also
    1. Older versions

Changes for Web developers

Developer Tools

Highlights:

  • Eyedropper tool to select colors in web pages
  • full stack traces for console error messages
  • editable Box Model View
  • %c formatting to style console messages
  • "copy as cURL" command in Network Monitor
  • Sublime Text keybindings in the source editor
  • Option to make Network Monitor logs persistent
  • JavaScript warnings on by default in the Web Console
  • Alt+click to expand all descendants of a node

All devtools bugs fixed between Firefox 30 and Firefox 31.

CSS

  • Changed var- prefix of CSS Variables to -- to reflect the final spec change (bug 985838).
  • The hyphens property now support Polish hyphenation rules (bug 987668).
  • Removed an unwanted white space for multiple of 10,000 in Korean counter styles (bug 985186).
  • CSS opacity transition broken with parent pseudo :before and overflow auto (bug 990340).
  • The ::-moz-math-stretchy pseudo-element has been removed (bug 1000879).

HTML

  • <track> has been implemented (bug 629350).

JavaScript

New ECMAScript 2015 features implemented:

  • New Array built-in: Array.prototype.fill() (bug 911147)
  • New Math function: Math.clz32() (bug 925123)
  • New String built-in: String.prototype.normalize() is available in Firefox Desktop (bug 918987).
  • New Object method Object.setPrototypeOf().
  • New Number constants: Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER.
  • The ES2015 Proxy isExtensible trap have been implemented (bug 978235).

Interfaces/APIs/DOM

  • Constructor of KeyboardEvent has been implemented (bug 930893).
  • The Resource Timing API has been implemented (see bug 822480).
  • KeyboardEvent.isComposing attribute has been implemented (bug 993234).
  • InputEvent interface has been implemented (bug 993253).
  • InputEvent.isComposing attribute has been implemented (bug 993253).
  • CSS.escape() has been implemented (bug 955860).
  • mousemove is now cancelable like in other browsers (bug 704423). Calling preventDefault() only sets defaultPrevented attribute to true; any other behaviors are not changed. E.g., it cannot prevent to set :hover state.
  • The Path2D interface has been implemented.
  • The CanvasRenderingContext2D.isPointInPath(), CanvasRenderingContext2D.isPointInStroke(), CanvasRenderingContext2D.clip(), CanvasRenderingContext2D.fill() and CanvasRenderingContext2D.stroke() methods have been updated to optionally accept a Path2D object.
  • Implemented HTMLMediaElement.fastSeek().
  • The Connection interface has been renamed to NetworkInformation and has been modified to match the new specificaiton (bug 960426).
  • The Navigator.sendBeacon() has been implemented; this allows asynchronous transmission of analytics or other data in a manner that doesn't rely on the transmitting page remaining loaded, so that it can be used in an unload or beforeunload handler.

MathML

  • Partial implementation of the OpenType MATH table, section 6.3.6 (bug 407059). For details, see the fonts for Mozilla's MathML engine and try the MathML torture test .
  • The ::-moz-math-stretchy pseudo-element has been removed (bug 1000879).
  • When available, the Unicode Mathematical alphanumeric characters are used for bold, italic and bold-italic mathvariants (bug 930504).

SVG

No change.

Audio/Video

No change.

Security

  • Privileged code now gets Xray vision for Date instances.

Changes for add-on and Mozilla developers

  • The "align" attribute on the urlbar-wrapper (formerly on the urlbar-container) which was set to "center" since time immemorial, has been removed. This is known to affect third-party themes. You should look carefully at what the right fix is for your theme, but for maintaining the equivalent effect, you can add the following CSS rule to your theme:
    #urlbar-wrapper {
      -moz-box-align: center;
    }
  • nsIDOMWindowUtils.sendQueryContentEvent() and nsIDOMWindowUtils.sendSelectionSetEvent() have aAdditionalFlags as optional argument. If you called nsIDOMWindowUtils.sendSelectionSetEvent() with true for aReverse, the behavior would be broken by this change. See explanation of each flag (QUERY_CONTENT_FLAG_* and SELECTION_SET_FLAG_*) for the detail of aAdditionalFlags.

Add-on SDK

Highlights:

  • Add-on Debugger
  • Added the ability to convert between high-level BrowserWindow objects and DOM windows, and between high-level Tab objects and XUL tabs.
  • Updated the default theme used for panels on Mac OS X.
  • Added contentStyle and contentStyleFile options to panel.

GitHub commits made between Firefox 30 and Firefox 31. This will not include any uplifts made after this release entered Aurora.

Bugs fixed between Firefox 30 and Firefox 31. This will not include any uplifts made after this release entered Aurora.

See also

  • Site Compatibility for Firefox 31

Older versions

  • Firefox 30 for developers
  • Firefox 29 for developers
  • Firefox 28 for developers
  • Firefox 27 for developers
  • Firefox 26 for developers
  • Firefox 25 for developers
  • Firefox 24 for developers
  • Firefox 23 for developers
  • Firefox 22 for developers
  • Firefox 21 for developers
  • Firefox 20 for developers
  • Firefox 19 for developers
  • Firefox 18 for developers
  • Firefox 17 for developers
  • Firefox 16 for developers
  • Firefox 15 for developers
  • Firefox 14 for developers
  • Firefox 13 for developers
  • Firefox 12 for developers
  • Firefox 11 for developers
  • Firefox 10 for developers
  • Firefox 9 for developers
  • Firefox 8 for developers
  • Firefox 7 for developers
  • Firefox 6 for developers
  • Firefox 5 for developers
  • Firefox 4 for developers
  • Firefox 3.6 for developers
  • Firefox 3.5 for developers
  • Firefox 3 for developers
  • Firefox 2 for developers
  • Firefox 1.5 for developers

Document Tags and Contributors

Tags: 
  • Firefox
  • Firefox 31
  • Firefox for Developers
 Contributors to this page: Sebastianz, kdex, Sheppy, teoli, kohei.yoshino, arai, fscholz, chrisdavidmills, JWhy, wbamberg, fred.wang, yisi, ziyunfei, GijsKruitbosch, Masayuki, mnoorenberghe
 Last updated by: Sebastianz, Feb 7, 2017, 12:49:36 PM
  1. Add-ons
    1. Firefox developer release notes
    2. Add-ons
    3. Add-on guidelines
    4. Add-on Manager
    5. Extensions
    6. OpenSearch plug-ins
    7. Plugins
    8. Themes
  2. Firefox internals
    1. Firefox developer release notes
    2. Mozilla project
    3. Gecko
    4. JavaScript code modules
    5. JS-ctypes
    6. MathML project
    7. MFBT
    8. Mozilla projects
    9. Preference system
    10. WebIDL bindings
    11. XPCOM
    12. XUL
  3. Building and contributing
    1. Build instructions
    2. Configuring build options
    3. How the build system works
    4. Mozilla source code
    5. Localization
    6. Mercurial
    7. Quality assurance
    8. Using Mozilla code in other projects