- Revision
- 293947
- Author
- [email protected]
- Date
- 2022-05-06 22:27:43 -0700 (Fri, 06 May 2022)
Log Message
Fix flakey test by using the old API on old systems.
https://bugs.webkit.org/show_bug.cgi?id=240195
Reviewed by Tim Horton.
Source/WebKit:
Turn fast/images/text-recognition/ios/show-data-detector-context-menu.html back on.
* UIProcess/ios/WKActionSheetAssistant.mm:
(-[WKActionSheetAssistant contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
(-[WKActionSheetAssistant contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
(-[WKContentView contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:contextMenuInteraction:previewForDismissingMenuWithConfiguration:]):
(-[WKContentView contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
(-[WKContentView contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:]): Deleted.
* UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm:
(-[WKDataListSuggestionsDropdown contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
(-[WKDataListSuggestionsDropdown contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
* UIProcess/ios/forms/WKDateTimeInputControl.mm:
(-[WKDateTimePicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
(-[WKDateTimePicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
* UIProcess/ios/forms/WKFileUploadPanel.mm:
(-[WKFileUploadPanel contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
(-[WKFileUploadPanel contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
* UIProcess/ios/forms/WKFormSelectPicker.mm:
(-[WKSelectPicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
(-[WKSelectPicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
Source/WTF:
* wtf/PlatformHave.h:
LayoutTests:
* platform/ios/TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (293946 => 293947)
--- trunk/LayoutTests/ChangeLog 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/LayoutTests/ChangeLog 2022-05-07 05:27:43 UTC (rev 293947)
@@ -1,3 +1,12 @@
+2022-05-06 Megan Gardner <[email protected]>
+
+ Fix flakey test by using the old API on old systems.
+ https://bugs.webkit.org/show_bug.cgi?id=240195
+
+ Reviewed by Tim Horton.
+
+ * platform/ios/TestExpectations:
+
2022-05-06 Patrick Griffis <[email protected]>
CSP: Fix script-src-elem policies in workers
Modified: trunk/LayoutTests/platform/ios/TestExpectations (293946 => 293947)
--- trunk/LayoutTests/platform/ios/TestExpectations 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/LayoutTests/platform/ios/TestExpectations 2022-05-07 05:27:43 UTC (rev 293947)
@@ -3613,4 +3613,3 @@
webkit.org/b/240167 [ Release ] fast/css-custom-paint/animate-repaint.html [ Pass Failure ]
-webkit.org/b/240170 fast/images/text-recognition/ios/show-data-detector-context-menu.html [ Skip ]
Modified: trunk/Source/WTF/ChangeLog (293946 => 293947)
--- trunk/Source/WTF/ChangeLog 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WTF/ChangeLog 2022-05-07 05:27:43 UTC (rev 293947)
@@ -1,3 +1,12 @@
+2022-05-06 Megan Gardner <[email protected]>
+
+ Fix flakey test by using the old API on old systems.
+ https://bugs.webkit.org/show_bug.cgi?id=240195
+
+ Reviewed by Tim Horton.
+
+ * wtf/PlatformHave.h:
+
2022-05-06 Brent Fulgham <[email protected]>
Remove unused ApplePayRemoteUIEnabled preference
Modified: trunk/Source/WTF/wtf/PlatformHave.h (293946 => 293947)
--- trunk/Source/WTF/wtf/PlatformHave.h 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WTF/wtf/PlatformHave.h 2022-05-07 05:27:43 UTC (rev 293947)
@@ -1163,3 +1163,10 @@
#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 160000)
#define HAVE_SKADNETWORK_v4 1
#endif
+
+#if !defined(HAVE_UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER) \
+ && (((PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 160000) \
+ || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 90000) \
+ || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 160000))
+#define HAVE_UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER 1
+#endif
Modified: trunk/Source/WebKit/ChangeLog (293946 => 293947)
--- trunk/Source/WebKit/ChangeLog 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WebKit/ChangeLog 2022-05-07 05:27:43 UTC (rev 293947)
@@ -1,3 +1,33 @@
+2022-05-06 Megan Gardner <[email protected]>
+
+ Fix flakey test by using the old API on old systems.
+ https://bugs.webkit.org/show_bug.cgi?id=240195
+
+ Reviewed by Tim Horton.
+
+ Turn fast/images/text-recognition/ios/show-data-detector-context-menu.html back on.
+
+ * UIProcess/ios/WKActionSheetAssistant.mm:
+ (-[WKActionSheetAssistant contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
+ (-[WKActionSheetAssistant contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
+ (-[WKContentView contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:contextMenuInteraction:previewForDismissingMenuWithConfiguration:]):
+ (-[WKContentView contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
+ (-[WKContentView contextMenuInteraction:configuration:dismissalPreviewForItemWithIdentifier:]): Deleted.
+ * UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm:
+ (-[WKDataListSuggestionsDropdown contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
+ (-[WKDataListSuggestionsDropdown contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
+ * UIProcess/ios/forms/WKDateTimeInputControl.mm:
+ (-[WKDateTimePicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
+ (-[WKDateTimePicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
+ * UIProcess/ios/forms/WKFileUploadPanel.mm:
+ (-[WKFileUploadPanel contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
+ (-[WKFileUploadPanel contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
+ * UIProcess/ios/forms/WKFormSelectPicker.mm:
+ (-[WKSelectPicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:contextMenuInteraction:previewForHighlightingMenuWithConfiguration:]):
+ (-[WKSelectPicker contextMenuInteraction:configuration:highlightPreviewForItemWithIdentifier:]): Deleted.
+
2022-05-06 Alex Christensen <[email protected]>
Fix another internal build
Modified: trunk/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm (293946 => 293947)
--- trunk/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm 2022-05-07 05:27:43 UTC (rev 293947)
@@ -924,7 +924,11 @@
return nil;
}
+#if HAVE(UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER)
- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration highlightPreviewForItemWithIdentifier:(id<NSCopying>)identifier
+#else
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration
+#endif
{
#if ENABLE(DATA_DETECTION)
if (interaction == _dataDetectorContextMenuInteraction) {
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (293946 => 293947)
--- trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2022-05-07 05:27:43 UTC (rev 293947)
@@ -11939,7 +11939,11 @@
return [_actionSheetAssistant suggestedActionsForContextMenuWithPositionInformation:_positionInformation];
}
+#if HAVE(UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER)
- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration highlightPreviewForItemWithIdentifier:(id<NSCopying>)identifier
+#else
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration
+#endif
{
[self _startSuppressingSelectionAssistantForReason:WebKit::InteractionIsHappening];
[self _cancelTouchEventGestureRecognizer];
@@ -11973,7 +11977,11 @@
}
}
+#if HAVE(UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER)
- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration dismissalPreviewForItemWithIdentifier:(id<NSCopying>)identifier
+#else
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForDismissingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration
+#endif
{
return std::exchange(_contextMenuInteractionTargetedPreview, nil).autorelease();
}
Modified: trunk/Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm (293946 => 293947)
--- trunk/Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm 2022-05-07 05:27:43 UTC (rev 293947)
@@ -552,7 +552,11 @@
#pragma mark UIContextMenuInteractionDelegate
+#if HAVE(UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER)
- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration highlightPreviewForItemWithIdentifier:(id<NSCopying>)identifier
+#else
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration
+#endif
{
return [self.view _createTargetedContextMenuHintPreviewForFocusedElement];
}
Modified: trunk/Source/WebKit/UIProcess/ios/forms/WKDateTimeInputControl.mm (293946 => 293947)
--- trunk/Source/WebKit/UIProcess/ios/forms/WKDateTimeInputControl.mm 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WebKit/UIProcess/ios/forms/WKDateTimeInputControl.mm 2022-05-07 05:27:43 UTC (rev 293947)
@@ -416,8 +416,11 @@
return UIEdgeInsetsZero;
}
-
+#if HAVE(UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER)
- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration highlightPreviewForItemWithIdentifier:(id<NSCopying>)identifier
+#else
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration
+#endif
{
return [_view _createTargetedContextMenuHintPreviewForFocusedElement];
}
Modified: trunk/Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm (293946 => 293947)
--- trunk/Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WebKit/UIProcess/ios/forms/WKFileUploadPanel.mm 2022-05-07 05:27:43 UTC (rev 293947)
@@ -637,7 +637,11 @@
#if USE(UICONTEXTMENU)
+#if HAVE(UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER)
- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration highlightPreviewForItemWithIdentifier:(id<NSCopying>)identifier
+#else
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration
+#endif
{
return [_view _createTargetedContextMenuHintPreviewIfPossible];
}
Modified: trunk/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm (293946 => 293947)
--- trunk/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm 2022-05-07 04:16:17 UTC (rev 293946)
+++ trunk/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm 2022-05-07 05:27:43 UTC (rev 293947)
@@ -649,7 +649,11 @@
return nil;
}
+#if HAVE(UI_CONTEXT_MENU_PREVIEW_ITEM_IDENTIFIER)
- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction configuration:(UIContextMenuConfiguration *)configuration highlightPreviewForItemWithIdentifier:(id<NSCopying>)identifier
+#else
+- (UITargetedPreview *)contextMenuInteraction:(UIContextMenuInteraction *)interaction previewForHighlightingMenuWithConfiguration:(UIContextMenuConfiguration *)configuration
+#endif
{
return [_view _createTargetedContextMenuHintPreviewForFocusedElement];
}