| Summary: | HAVE(ACCESSIBILITY_BUNDLES_PATH) is defined in terms of PLATFORM(IOS_FAMILY) but only checks the version of __IPHONE_OS_VERSION_MIN_REQUIRED | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Andy Estes <aestes> | ||||||
| Component: | Accessibility | Assignee: | chris fleizach <cfleizach> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aestes, benjamin, cdumez, cfleizach, cmarcelo, darin, ericliang, ews-watchlist, thorton, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Local Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=207828 | ||||||||
| Attachments: |
|
||||||||
|
Description
Andy Estes
2020-06-03 09:44:43 PDT
Created attachment 401380 [details]
patch
Comment on attachment 401380 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=401380&action=review > Source/WTF/wtf/PlatformHave.h:388 > -#if PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000 > +#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) \ > + || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 70000) \ > + || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 140000) Seems like an improvement. Also note that in IOS_FAMILY, besides iOS, watchOS, and tvOS, there is Mac Catalyst. Comment on attachment 401380 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=401380&action=review >> Source/WTF/wtf/PlatformHave.h:388 >> + || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 140000) > > Seems like an improvement. Also note that in IOS_FAMILY, besides iOS, watchOS, and tvOS, there is Mac Catalyst. yes good point. we should also add that Created attachment 401388 [details]
patch
Comment on attachment 401388 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=401388&action=review > Source/WTF/wtf/PlatformHave.h:389 > + || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) Tim Horton asked earlier if __IPHONE_OS_VERSION_MIN_REQUIRED was the correct macro to check for MACCATALYST. He was pretty sure it was not. (In reply to Darin Adler from comment #6) > Comment on attachment 401388 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=401388&action=review > > > Source/WTF/wtf/PlatformHave.h:389 > > + || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) > > Tim Horton asked earlier if __IPHONE_OS_VERSION_MIN_REQUIRED was the correct > macro to check for MACCATALYST. He was pretty sure it was not. I think it works I don't know if it's the best one. I saw this was already being used #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101600) || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) #define HAVE_MEDIA_USAGE_FRAMEWORK 1 #endif OK. maybe HAVE(MEDIA_USAGE_FRAMEWORK) is right and Tim is wrong. Or maybe ... the other way around? Sure would be nice to confirm. (In reply to Darin Adler from comment #8) > OK. maybe HAVE(MEDIA_USAGE_FRAMEWORK) is right and Tim is wrong. Or maybe > ... the other way around? Sure would be nice to confirm. It looks like I was wrong! (or am wrong now, anyway!) Committed r262765: <https://trac.webkit.org/changeset/262765> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401388 [details]. |