• 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
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. Firefox OS developer release notes
  5. Firefox OS 2.0 for developers

Firefox OS 2.0 for developers

In This Article
  1. New product features
  2. New partner features
  3. New DevTools features
  4. Platform additions in detail
    1. Web API
    2. CSS
    3. Technology support improvements
  5. Older versions

This page details the developer features newly implemented in Gecko that are specific to Firefox OS 2.0.

Firefox OS 2.0's Gecko component is based on Firefox 31/32.

New product features

This section provides a summary of the new features available in Firefox OS 2.0. For more details on specific platform changes (API additions, etc.), see the Platform additions in detail section.

NFC
This release includes support for device-to-device content sharing support with NFC (Near Field Communication). You can pair your device with another, then swipe to share your contacts, media, or favorite URLs with others.
Telephony
Firefox OS now supports both IPv4 and IPv6 addresses in the network manager.
Find My Device
If you’ve lost your Firefox OS smartphone, Find My Device can help you find it (see the http://find.firefox.com website). You can see it on a map, make it play a sound and have it display a message. You can also remotely lock it or delete your personal info. To get started, create a Firefox Account (Settings > Firefox Accounts on your device) and enable Find My Device (Settings > Find My Device).
Media
You can now create your own ringtones using your own music collection, or songs you download from the Web.
Camera
The Camera app now supports various focus modes: Touch, Continuous Auto and Face tracking.
Productivity
We've done a visual refresh of the Email, Calender, and Clock apps.
Homescreen
Firefox OS 2.0 introduces a simpler vertical-scrolling homescreen with larger icons.
Edge-gesture app switching
Edge gestures are now available for switching between apps (swipe your thumb from the left edge of the screen to the right and vice versa, to switch between multiple open apps.)

New partner features

E.ME integration
E.ME integration provides direct access to web apps while configurable search providers can search the web at the same time.

New DevTools features

The Firefox Developer Tools have had a large number of features added in Firefox versions 31 and 32; these aren't Firefox OS-specific, but you can take advantage of them when debugging your Firefox OS apps through WebIDE. To find out more, read:

  • Firefox Developer Tools Episode 31
  • Firefox Developer Tools Episode 32

Platform additions in detail

Note: Our list here includes features most important to Firefox OS. For an expanded list of general Gecko feature additions (which are generally also present in Firefox OS 2.0), consult the Firefox 31 release notes for developers and Firefox 32 release notes for developers.

Web API

  • The parameters of the MozMobileNetworkInfo constructor have been made nullable (bug 1026727).
  • WebRTC: mozGetUserMedia, mozRTCPeerConnection, and DataChannels are supported by default.
  • New constraints for WebRTC's getUserMedia(), width, height, and framerate,  have been added, to limit stream dimensions and frame rate (bug 907352):
    {
      mandatory: {
        width: { min: 640 },
        height: { min: 480 }
      },
      optional: [
        { width: 650 },
        { width: { min: 650 }},
        { frameRate: 60 },
        { width: { max: 800 }},
      ]
    }
  • RTSP streaming support is now available (bug 929372).
  • The Resource Statistics API is implemented (bug 951976).
  • The Resource Timing API is implemented (bug 822480).
  • fastSeek API is now available for media elements (bug 778077).
  • The Network Information API is now exposed to Firefox OS (bug 960426).
  • The Wifi capabilities of the device can now be returned using WifiManager.getCapabilities() (bug 1002314).
  • The Navigator.vibrate() method behavior has been adapted to the latest specification: too long vibrations are now truncated (bug 1014581).
  • The Device Storage API now has mount and unmount capabilities (privileged) (bug 971612).
  • The Feature Detection API is now available (privileged) (bug 983502).
  •  The MSISDN Verification API has been added (privileged) (bug 988469).
  • A new CameraControl API is now available (privileged) (bug 909542).
  • The Data Store API has been made available to Web Workers (certified) (bug 949325).
  • The Device Storage API now uses the File System API spec (bug 910412).
  • The deprecated Audio Data API has been removed (bug 927245).

CSS

  • position:sticky is now supported, and used in Gaia app layout (bug 886646).
  • flex-grow and  flex-shrink can now to transition between zero and non-zero values (bug 996945).

Technology support improvements

  • Firefox OS 2.0 now supports H.264 video hardware, allowing you to create and playback video encoded using this codec much more efficiently. See Media support on Firefox OS for details.

Older versions

  • Firefox OS 1.4 for developers
  • Firefox OS 1.3 for developers
  • Firefox OS 1.2 for developers
  • Firefox OS 1.1 for developers
  • Firefox OS 1.0.1 for developers

Document Tags and Contributors

Tags: 
  • 2.0
  • Firefox OS
  • Release Notes
 Contributors to this page: chrisdavidmills, PriscillaAlcalde, christophe.hurpeau, bajaj, eliperelman, jryans, Sheppy, mehmetaergun, trevorh, NickDesaulniers
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:56:48 AM
See also
  1. Build and install
    1. Build and install overview
    2. B2G OS build process summary
    3. Build prerequisites
    4. Preparing for your first build
    5. Building B2G OS
    6. B2G installer add-on
    7. Building B2G OS for Flame on Mac OS X
    8. Choosing how to run Gaia or B2G OS
    9. Compatible Devices
    10. Installing B2G OS on a mobile device
    11. Creating and applying B2G OS update packages
    12. Building and installing FOTA community builds
    13. B2G build variables reference sheet
  2. Porting B2G OS
    1. Porting overview
    2. Porting basics
    3. Porting on CyanogenMod
  3. Developing Gaia
    1. Developing Gaia overview
    2. Running the Gaia codebase
    3. Run Gaia on desktop using Mulet
    4. Understanding the Gaia codebase
    5. Making Gaia code changes
    6. Testing Gaia code changes
    7. Submitting a Gaia patch
    8. Gaia build system primer
    9. Different ways to run Gaia
    10. Make options reference
    11. Gaia tools reference
  4. B2G OS APIs