Bug 211240

Summary: WebCore::systemHasBattery() is unnecessarily expensive on iOS
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, pvollan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2020-04-30 10:51:51 PDT
WebCore::systemHasBattery() is unnecessarily expensive on iOS since iOS devices always have a battery.
Attachments
Patch (1.82 KB, patch)
2020-04-30 10:53 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2020-04-30 10:52:01 PDT
Chris Dumez
Comment 2 2020-04-30 10:53:43 PDT
Geoffrey Garen
Comment 3 2020-04-30 11:01:35 PDT
Comment on attachment 398066 [details] Patch I look forward to finding this code ten years from now, to fix a new hardware bug. 😬
EWS
Comment 4 2020-04-30 12:43:19 PDT
Committed r260960: <https://trac.webkit.org/changeset/260960> All reviewed patches have been landed. Closing bug and clearing flags on attachment 398066 [details].
Note You need to log in before you can comment on or make changes to this bug.