RESOLVED FIXED 211402
Make __IPHONE_OS_VERSION_MIN_REQUIRED checks against old versions explicit about watchOS and tvOS
https://bugs.webkit.org/show_bug.cgi?id=211402
Summary Make __IPHONE_OS_VERSION_MIN_REQUIRED checks against old versions explicit ab...
Darin Adler
Reported 2020-05-04 14:44:28 PDT
Make __IPHONE_OS_VERSION_MIN_REQUIRED checks against old versions explicit about watchOS and tvOS
Attachments
Patch (43.63 KB, patch)
2020-05-04 17:56 PDT, Darin Adler
ap: review+
Darin Adler
Comment 1 2020-05-04 17:56:23 PDT
Alexey Proskuryakov
Comment 2 2020-05-04 18:17:46 PDT
Comment on attachment 398447 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398447&action=review > Source/WebKit/ChangeLog:12 > + * Platform/spi/ios/UIKitSPI.h: Move from __IPHONE_OS_VERSION_MIN_REQUIRED to > + PLATFORM(IOS) in one place, and in the other removed the conditional entirely. I went back here to find out why there isn't a comment about watchOS and tvOS in the code. > Source/WebCore/page/SettingsDefaultValues.h:109 > +#if PLATFORM(COCOA) && !(PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101400) && !PLATFORM(APPLETV) There is no __MAC_OS_X_VERSION_MIN_REQUIRED < 101400. > Source/WebCore/platform/graphics/cg/GradientCG.cpp:187 > +#if PLATFORM(COCOA) && !(PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101400) && !PLATFORM(APPLETV) Ditto. > Source/WebKit/NetworkProcess/NetworkActivityTracker.h:31 > +#if USE(APPLE_INTERNAL_SDK) && PLATFORM(COCOA) && !(PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101400) && !PLATFORM(APPLETV) There is no __MAC_OS_X_VERSION_MIN_REQUIRED < 101400. > Source/WebKit/Shared/WebPreferencesDefaultValues.h:225 > +#if PLATFORM(COCOA) && !(PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101400) && !PLATFORM(APPLETV) There is no __MAC_OS_X_VERSION_MIN_REQUIRED < 101400. > Tools/TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm:352 > +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || PLATFORM(IOS) It's always __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
Darin Adler
Comment 3 2020-05-04 18:49:23 PDT
Comment on attachment 398447 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398447&action=review >> Source/WebKit/ChangeLog:12 >> + PLATFORM(IOS) in one place, and in the other removed the conditional entirely. > > I went back here to find out why there isn't a comment about watchOS and tvOS in the code. Added a comment about that to the change log. >> Source/WebCore/page/SettingsDefaultValues.h:109 >> +#if PLATFORM(COCOA) && !(PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101400) && !PLATFORM(APPLETV) > > There is no __MAC_OS_X_VERSION_MIN_REQUIRED < 101400. I’ll take care of all of these.
Darin Adler
Comment 4 2020-05-04 18:53:50 PDT
Radar WebKit Bug Importer
Comment 5 2020-05-04 18:54:15 PDT
Note You need to log in before you can comment on or make changes to this bug.