1. 19

The linked article is from August 2016. The news is that due to this research Mozilla has now removed the battery API from Firefox: https://www.fxsitecompat.com/en-CA/docs/2016/battery-status-api-has-been-removed/


  2. 10

    How on Earth did a feature this stupid even make it into the browser in the first place?

    1. 5

      <strike>Probably a carry over from FirefoxOS. I’m pretty sure this feature was not supported in other browsers.</strike>

      Never mind, just reread the article more carefully, apparently it is a W3C candidate recommendation. “Javascript all the things”, I guess? There’s still a possibility the impetus was FirefoxOS, though that’s just a wild guess.

      1. 3

        Yeah, that makes sense. Oh, Mozilla.

        ETA: ugh. Just … ugh.

        1. 2

          Chrome OS also seems like a candidate.

        2. 3

          Knowing that you’re on battery would be useful to tone down animations or whatever other task.

          1. 8

            That’s a job for my scheduler, not your jive-ass runtime.

            1. 4

              Seriously. The user knows when their battery is low (it may be the one system monitor most users are actually in tune with). They can decide whether browsing the web with 2% battery is a good idea or not.

            2. 5

              Maybe browsers could also have a “battery saving mode” that is turned off and on. Then people could mark that they want a less resource hungry web experience without exposing the battery.

              1. 2

                That would unquestionably be better; but native applications that aren’t servants of the ad economy would be better yet.

                1. 2

                  Jetbrains IDEs have this. Presumably it tones down indexing and background tasks… I’ve never felt the need to use it TBH

            3. 7

              As a workaround in Firefox < 52, go to about:config and set dom.battery.enabled to false.

              I’m not sure if this can be worked around in Chrome. Does anyone know?

              1. 5

                Is there some collection of Firefox configuration options that can/should be set to protect privacy and security?

                1. 6

                  There are a couple people who actually maintain a few lists like this one: https://github.com/amq/firefox-debloat

                  but there is no consolidated thread out there (to my knowledge)