Mozilla cuts website access to Battery API in Firefox 52


Mozilla has made the decision to cut website access to the Battery Status API in Firefox 52 to improve user privacy while using the browser.

Battery Status API was introduced back in 2012 to allow sites, apps and extensions to retrieve information about the device’s battery charge and discharge time, and batter level.

You can check out this test site to see this in action. Please note that the API is only supported in Firefox (prior to version 52), Chrome and several Chromium-based browsers such as Opera currently, but not in Edge, Internet Explorer or Safari.

Sites can access the information directly, there is no permission request that prevents them from doing so as per the Battery API specifications:

The API defined in this specification is used to determine the battery status of the hosting device. The information disclosed has minimal impact on privacy or fingerprinting, and therefore is exposed without permission grants. For example, authors cannot directly know if there is a battery or not in the hosting device.

firefox battery status api

The research paper “The leaking battery. A privacy analysis of the HTML5 Battery Status API” indicates however that the API can be abused for fingerprinting and thus online tracking (PDF version)

In short time intervals, Battery Status API can be used to reinstantiate tracking identifiers of users, similar to evercookies. Moreover, battery information can be used in cases where a user can go to great lenghts to clear her evercookies. In a corporate setting, where devices share similar characteristics and IP addresses, the battery information can be used to distinguish devices behind a NAT, of traditional tracking mechanisms do not work.

Firefox users can disable the Battery Status API in the browser by flipping the Boolean value of dom.battery.enabled to false on about:config (this is one of then many privacy and security preferences of Firefox covered here)

  1. Type about:config in the Firefox address bar.
  2. Confirm that you will be careful if the warning prompt appears.
  3. Search for dom.battery.enabled.
  4. Double-click the preference to set it to false.

Starting with Firefox 52, websites may no longer access the API so that it can no longer be used for tracking purposes. Mozilla will keep the API open to extensions and Firefox itself however.

The change affects desktop and Android versions of the Firefox web browser. This means that only Chrome and Chromium-based browsers may be tracked using the API.

It is rather interesting to note that Mozilla is not aware of a legitimate use case of the API on Internet sites. (via Sören Hentzschel)

Now Read: The ultimate Online Privacy Test Resource List

Ghacks needs you. You can find out how to support us here or support the site directly by becoming a Patreon. Thank you for being a Ghacks reader.

The post Mozilla cuts website access to Battery API in Firefox 52 appeared first on gHacks Technology News.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.