Bug 216903

Summary: webkitpy: Make sw_vers the source of truth for the MacOS version
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, dewei_zhu, ews-watchlist, glenn, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Jonathan Bedard 2020-09-23 15:47:35 PDT
For compatibility reasons, platform.mac_ver() may return 10.16 instead of 11.0. In WebKit, we always want the actual macOS version, and should prefer the version as reported by sw_vers.
Comment 1 Radar WebKit Bug Importer 2020-09-23 15:47:49 PDT
<rdar://problem/69462735>
Comment 2 Jonathan Bedard 2020-09-23 15:52:08 PDT
Created attachment 409508 [details]
Patch
Comment 3 EWS 2020-09-23 16:28:55 PDT
Committed r267508: <https://trac.webkit.org/changeset/267508>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 409508 [details].