Closed
Bug 1190243
Opened 10 years ago
Closed 10 years ago
Update gaia battery api to use new W3C draft
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wcpan, Assigned: zbraniecki)
References
Details
Attachments
(2 files)
Please see bug 1050749.
Use navigator.getBattery() instead of navigator.battery.
| Reporter | ||
Comment 1•10 years ago
|
||
Would you help to make the change?
Thank you.
Flags: needinfo?(gandalf)
| Assignee | ||
Comment 3•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Attachment #8642793 -
Attachment description: pull → pull request
| Assignee | ||
Comment 4•10 years ago
|
||
The patch is mostly complete. It passes almost all Gu tests except of two. I need a test B2G build to test it further.
Is there an option we'll get a transition period when both, navigator.battery and navigator.getBattery will work?
This would enable us to transition without having to land risky patches and trying to narrow down the window when all our builds fail.
Flags: needinfo?(wpan)
| Reporter | ||
Comment 5•10 years ago
|
||
According to bug 1050749 comment 22 and bug 1050749 comment 23, I guess we just have to land these patches in the same time, or we'll need to decide when to remove the transition.
Flags: needinfo?(wpan)
| Reporter | ||
Comment 6•10 years ago
|
||
Bug 1050749 has been landed, I think now it will be easier to make the transition.
| Reporter | ||
Comment 7•10 years ago
|
||
Can we land this patch? or this is no longer needed for gaia?
Flags: needinfo?(gandalf)
| Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8642793 [details] [review]
pull request
This patch migrates all ./apps to use the new API. I tested all unit tests that I touch and they all pass green locally.
Flags: needinfo?(gandalf)
Attachment #8642793 -
Flags: review?(fabrice)
Updated•10 years ago
|
Attachment #8642793 -
Flags: review?(fabrice) → review+
Comment 9•10 years ago
|
||
| Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8731807 [details] [review]
[gaia] zbraniecki:1190243-update-battery-api-tv > mozilla-b2g:master
And the TV counterpart, much smaller :)
Attachment #8731807 -
Flags: review?(rchien)
| Assignee | ||
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
Comment on attachment 8731807 [details] [review]
[gaia] zbraniecki:1190243-update-battery-api-tv > mozilla-b2g:master
Looks great to me for that small promisify patch :)
Attachment #8731807 -
Flags: review?(rchien) → review+
| Assignee | ||
Comment 13•10 years ago
|
||
Commit: https://github.com/mozilla-b2g/gaia/commit/5514c1b4cc674930bf1aa98ee98643dcf418bd82
:wcp - I believe you can remove navigator.battery now! :)
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(wpan)
Resolution: --- → FIXED
| Reporter | ||
Comment 14•10 years ago
|
||
I created bug 1259335 to track the API removal.
Flags: needinfo?(wpan)
You need to log in
before you can comment on or make changes to this bug.
Description
•