Bug 237933

Summary: Avoid calls to [CLLocationManager authorizationStatus] & [CLLocationManager locationServicesEnabled]
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, darin, ggaren, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2022-03-15 16:55:39 PDT
Avoid calls to [CLLocationManager authorizationStatus] & [CLLocationManager locationServicesEnabled] for performance reason since those APIs are synchronous. Instead, rely on the locationManagerDidChangeAuthorization delegate function to get the authorization asynchronously.
Attachments
Patch (11.34 KB, patch)
2022-03-15 17:05 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2022-03-15 16:55:50 PDT
Chris Dumez
Comment 2 2022-03-15 17:05:02 PDT
Chris Dumez
Comment 3 2022-03-17 07:40:42 PDT
Patch is ready for review. The EWS failure is unrelated.
Geoffrey Garen
Comment 4 2022-03-18 11:58:20 PDT
Comment on attachment 454778 [details] Patch r=me Looks like a nice simplification too.
Chris Dumez
Comment 5 2022-03-18 11:58:44 PDT
Comment on attachment 454778 [details] Patch Thanks for reviewing.
EWS
Comment 6 2022-03-18 14:54:59 PDT
Committed r291496 (248608@main): <https://commits.webkit.org/248608@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454778 [details].
Note You need to log in before you can comment on or make changes to this bug.