[tor-bugs] #5293 [TorBrowserButton]: Hook charging+discharching rates in Battery API (was: Keep an eye on Battery API)
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Mar 16 05:11:32 UTC 2012
#5293: Hook charging+discharching rates in Battery API
------------------------------+---------------------------------------------
Reporter: mikeperry | Owner: mikeperry
Type: task | Status: new
Priority: major | Milestone: TorBrowserBundle 2.2.x-stable
Component: TorBrowserButton | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------------+---------------------------------------------
Changes (by mikeperry):
* priority: normal => major
* milestone: TorBrowserBundle 2.3.x-stable => TorBrowserBundle
2.2.x-stable
Comment:
Wow that was fast. On by default in Firefox 11 already.
Looks like they gave us a good option for concealing charging time:
"Returns positive infinity, if the battery is discharging or if the
implementation is unable report the remaining charging time."
So we should probably just always return that for chargingTime and
-infinity for dischargingTime.
What the hell represents "positive infinity" in a loosely-typed language
though, I wonder...
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5293#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list