Created attachment 578510 [details]
Calling navigator.mozBattery triggers:
###!!! ASSERTION: Battery API: When charging and level at 1.0, remaining time should be 0. Please fix your backend!: 'Error', file dom/battery/BatteryManager.cpp, line 200
My MacBook Pro is fully charged and plugged in. I am running Mac OS X 10.6.
Created attachment 578558 [details] [diff] [review]
Oups, I forgot two changes. I guess it was a good idea to put that assertion :)
This should actually apply on all platforms without battery backends (Windows, Mac and Linux without DBus).
Comment on attachment 578558 [details] [diff] [review]
Jonas, feel free to take this review from Chris. It's a two-line change (for real this time ;)) and Chris is on vacation AFAIK.
I marked this in-testsuite+ because technically the mochitests were throwing an assert but we don't fail on them yet.