We don't need iOS 11 macros in WebItemProviderPasteboard since we are only building on iOS 13 and newer.
Created attachment 388625 [details] Patch
Comment on attachment 388625 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388625&action=review > Source/WebCore/platform/ios/WebItemProviderPasteboard.h:-30 > -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 What makes this file iOS only? This would be a change for watchOS ad tvOS I think.
Comment on attachment 388625 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388625&action=review >> Source/WebCore/platform/ios/WebItemProviderPasteboard.h:-30 >> -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 > > What makes this file iOS only? This would be a change for watchOS ad tvOS I think. Top of the file, line 26: #if TARGET_OS_IPHONE
(In reply to Jonathan Bedard from comment #3) > Comment on attachment 388625 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=388625&action=review > > >> Source/WebCore/platform/ios/WebItemProviderPasteboard.h:-30 > >> -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 > > > > What makes this file iOS only? This would be a change for watchOS ad tvOS I think. > > Top of the file, line 26: > > #if TARGET_OS_IPHONE Which means IOS_FAMILY
(In reply to Tim Horton from comment #4) > (In reply to Jonathan Bedard from comment #3) > > Comment on attachment 388625 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=388625&action=review > > > > >> Source/WebCore/platform/ios/WebItemProviderPasteboard.h:-30 > > >> -#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 > > > > > > What makes this file iOS only? This would be a change for watchOS ad tvOS I think. > > > > Top of the file, line 26: > > > > #if TARGET_OS_IPHONE > > Which means IOS_FAMILY That's super confusing....guess we should replace that with a PLATFORM macro.
Created attachment 388630 [details] Patch
You can't do that, it's an SDK header.
Perhaps you want TARGET_OS_IOS?
Created attachment 388692 [details] Patch
Created attachment 388693 [details] Patch
Comment on attachment 388693 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388693&action=review > Source/WebCore/platform/ios/WebItemProviderPasteboard.h:26 > +#if TARGET_OS_IPHONE && !TARGET_OS_WATCH && !TARGET_OS_TV TARGET_OS_IOS probably still better but w/e
Created attachment 388716 [details] Patch
(In reply to Tim Horton from comment #11) > Comment on attachment 388693 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=388693&action=review > > > Source/WebCore/platform/ios/WebItemProviderPasteboard.h:26 > > +#if TARGET_OS_IPHONE && !TARGET_OS_WATCH && !TARGET_OS_TV > > TARGET_OS_IOS probably still better but w/e Didn't realize that TARGET_OS_IOS included Catalyst, since the comments in TargetConditionals.h do not make that clear.
Comment on attachment 388716 [details] Patch Clearing flags on attachment: 388716 Committed r255089: <https://trac.webkit.org/changeset/255089>
All reviewed patches have been landed. Closing bug.
<rdar://problem/58877638>
Reverted r255089 for reason: Breaks tvOS build. Committed r255092: <https://trac.webkit.org/changeset/255092>
IIRC, TARGET_OS_IOS only covers iOS and iPadOS but not macCatalyst, where we also use WebItemProviderPasteboard SPI.
(In reply to Wenson Hsieh from comment #18) > IIRC, TARGET_OS_IOS only covers iOS and iPadOS but not macCatalyst, where we > also use WebItemProviderPasteboard SPI. Tim and I dug into TargetConditionals.h. The comment about TARGET_OS_IOS doesn't say it targets Catalyst, but when you dig into where we define TARGET_OS_IOS, it ends up being set to 1 whenever MACCATALYST is set to 1.
Created attachment 388727 [details] Patch
Comment on attachment 388727 [details] Patch Clearing flags on attachment: 388727 Committed r255144: <https://trac.webkit.org/changeset/255144>