Bug 215091 - Remove the ENABLE_DATA_INTERACTION feature flag
Summary: Remove the ENABLE_DATA_INTERACTION feature flag
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords: DoNotImportToRadar
Depends on:
Blocks:
 
Reported: 2020-08-03 11:19 PDT by Wenson Hsieh
Modified: 2020-08-03 15:48 PDT (History)
13 users (show)

See Also:


Attachments
For EWS (28.35 KB, patch)
2020-08-03 12:20 PDT, Wenson Hsieh
megan_gardner: review+
Details | Formatted Diff | Diff
Patch (30.29 KB, patch)
2020-08-03 13:58 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2020-08-03 11:19:49 PDT
This feature flag was used to guard iOS drag and drop code prior to WWDC 2017.
Comment 1 Wenson Hsieh 2020-08-03 12:20:33 PDT
Created attachment 405855 [details]
For EWS
Comment 2 Megan Gardner 2020-08-03 13:34:35 PDT
Comment on attachment 405855 [details]
For EWS

View in context: https://bugs.webkit.org/attachment.cgi?id=405855&action=review

> Source/WebCore/page/FocusController.cpp:808
> +#if PLATFORM(IOS_FAMILY) && ENABLE(DRAG_SUPPORT)

I'm assuming there's good reason that some of these are IOS_FAMILY and DRAG_SUPPORT and some are just one or the other.

> Source/WebCore/platform/ios/WebItemProviderPasteboard.mm:29
> +#if ENABLE(DRAG_SUPPORT) && PLATFORM(IOS_FAMILY)

nit: would you mind flipping this one so the order matches the others?

> Source/WebCore/platform/ios/WebItemProviderPasteboard.mm:874
> +#endif // ENABLE(DRAG_SUPPORT) && PLATFORM(IOS_FAMILY)

nit: ditto
Comment 3 Wenson Hsieh 2020-08-03 13:42:45 PDT
Comment on attachment 405855 [details]
For EWS

View in context: https://bugs.webkit.org/attachment.cgi?id=405855&action=review

>> Source/WebCore/page/FocusController.cpp:808
>> +#if PLATFORM(IOS_FAMILY) && ENABLE(DRAG_SUPPORT)
> 
> I'm assuming there's good reason that some of these are IOS_FAMILY and DRAG_SUPPORT and some are just one or the other.

Yes — some of these places (e.g. WKContentViewInteraction) are already guarded by PLATFORM(IOS_FAMILY), so only ENABLE(DRAG_SUPPORT) is needed, and vice versa.

>> Source/WebCore/platform/ios/WebItemProviderPasteboard.mm:29
>> +#if ENABLE(DRAG_SUPPORT) && PLATFORM(IOS_FAMILY)
> 
> nit: would you mind flipping this one so the order matches the others?

Good catch! Will do.

>> Source/WebCore/platform/ios/WebItemProviderPasteboard.mm:874
>> +#endif // ENABLE(DRAG_SUPPORT) && PLATFORM(IOS_FAMILY)
> 
> nit: ditto

👍🏻
Comment 4 Wenson Hsieh 2020-08-03 13:58:22 PDT
Created attachment 405863 [details]
Patch
Comment 5 EWS 2020-08-03 15:48:53 PDT
Committed r265228: <https://trac.webkit.org/changeset/265228>

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