Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Implement battery.dischargingTime

RESOLVED FIXED in mozilla11

Status

()

Core
DOM
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: mounir, Assigned: mounir)

Tracking

Trunk
mozilla11
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
This has been added to the specs while implementing the first version of Battery API. The only issue I see with this new property is that it will tell the author whether or not the device has a battery coupled to battery.chargingTime (both will return Infinity if there is no battery).
(Assignee)

Comment 1

6 years ago
Created attachment 572427 [details] [diff] [review]
Add .dischargingTime in the DOM
Assignee: nobody → mounir
Status: NEW → ASSIGNED
Attachment #572427 - Flags: review?(jonas)
(Assignee)

Updated

6 years ago
Whiteboard: [needs review]
(Assignee)

Updated

6 years ago
Blocks: 700261
Attachment #572427 - Flags: review?(jonas) → review+
(Assignee)

Updated

6 years ago
Flags: in-testsuite?
Whiteboard: [needs review]
(Assignee)

Comment 2

6 years ago
Comment on attachment 572427 [details] [diff] [review]
Add .dischargingTime in the DOM

This has just landed in mozilla-inbound. Requesting aurora approval for API completeness in Firefox 10. It would be better to ship Firefox 10 with the entire API if we say it is present. The risk is very low given that there is no use of the API for the moment.
Attachment #572427 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/a6bdf740fa19
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11

Comment 4

6 years ago
Comment on attachment 572427 [details] [diff] [review]
Add .dischargingTime in the DOM

It looks like this feature wasn't ready for 10. Please re-nominate if you have a good justification for trying to get this into 10 rather than just waiting for 11.
Attachment #572427 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora-
You need to log in before you can comment on or make changes to this bug.