[Webkit-unassigned] [Bug 114891] New: Battery API won't return updated battery status until client calls didChangeBatteryStatus

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 19 15:44:15 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=114891

           Summary: Battery API won't return updated battery status until
                    client calls didChangeBatteryStatus
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit API
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: otcheung at rim.com


The battery status object in BatteryManager won't get updated until the client calls didChangeBatteryStatus in the controller. If we have a web page that only calls webkitBattery.charge() and there's no update from the client between the creation of addListener(BatteryManager) and the next didChangeBatteryStatus, the BatteryManager will always return the default value because m_batteryStatus is always null.

We need to update the manager when we attach it to the controller, and update all existing managers when the controller receives it's first battery status object.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list