Title: [293366] branches/safari-614.1.11-branch/Source/WebKit
- Revision
- 293366
- Author
- [email protected]
- Date
- 2022-04-25 15:55:51 -0700 (Mon, 25 Apr 2022)
Log Message
Cherry-pick r293339. rdar://problem/92283605
Fix the tvOS and watchOS builds after r293231
https://bugs.webkit.org/show_bug.cgi?id=239736
rdar://92283605
Reviewed by Wenson Hsieh.
* UIProcess/API/Cocoa/WKWebView.h:
UIFindInteraction is marked unavailable on watchOS and tvOS.
* UIProcess/API/Cocoa/WKWebView.mm:
Use platform-checks rather than the existing HAVE macro, so that these
methods are still implemented in older builds. There are no version
checks in WKWebView.h.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-614.1.11-branch/Source/WebKit/ChangeLog (293365 => 293366)
--- branches/safari-614.1.11-branch/Source/WebKit/ChangeLog 2022-04-25 22:45:08 UTC (rev 293365)
+++ branches/safari-614.1.11-branch/Source/WebKit/ChangeLog 2022-04-25 22:55:51 UTC (rev 293366)
@@ -1,3 +1,44 @@
+2022-04-25 Russell Epstein <[email protected]>
+
+ Cherry-pick r293339. rdar://problem/92283605
+
+ Fix the tvOS and watchOS builds after r293231
+ https://bugs.webkit.org/show_bug.cgi?id=239736
+ rdar://92283605
+
+ Reviewed by Wenson Hsieh.
+
+ * UIProcess/API/Cocoa/WKWebView.h:
+
+ UIFindInteraction is marked unavailable on watchOS and tvOS.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+
+ Use platform-checks rather than the existing HAVE macro, so that these
+ methods are still implemented in older builds. There are no version
+ checks in WKWebView.h.
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-04-25 Aditya Keerthi <[email protected]>
+
+ Fix the tvOS and watchOS builds after r293231
+ https://bugs.webkit.org/show_bug.cgi?id=239736
+ rdar://92283605
+
+ Reviewed by Wenson Hsieh.
+
+ * UIProcess/API/Cocoa/WKWebView.h:
+
+ UIFindInteraction is marked unavailable on watchOS and tvOS.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+
+ Use platform-checks rather than the existing HAVE macro, so that these
+ methods are still implemented in older builds. There are no version
+ checks in WKWebView.h.
+
2022-04-22 Aditya Keerthi <[email protected]>
[iOS] Add find interaction API to WKWebView
Modified: branches/safari-614.1.11-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebView.h (293365 => 293366)
--- branches/safari-614.1.11-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebView.h 2022-04-25 22:45:08 UTC (rev 293365)
+++ branches/safari-614.1.11-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebView.h 2022-04-25 22:55:51 UTC (rev 293366)
@@ -33,7 +33,7 @@
NS_ASSUME_NONNULL_BEGIN
-#if TARGET_OS_IPHONE
+#if TARGET_OS_IOS
@class UIFindInteraction;
#endif
@@ -650,7 +650,7 @@
- (void)setMinimumViewportInset:(NSEdgeInsets)minimumViewportInset maximumViewportInset:(NSEdgeInsets)maximumViewportInset WK_API_AVAILABLE(macos(WK_MAC_TBA));
#endif
-#if TARGET_OS_IPHONE
+#if TARGET_OS_IOS
/*! @abstract Enables the web view's built-in find interaction. */
@property (nonatomic, readwrite, getter=isFindInteractionEnabled) BOOL findInteractionEnabled WK_API_AVAILABLE(ios(WK_IOS_TBA));
Modified: branches/safari-614.1.11-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm (293365 => 293366)
--- branches/safari-614.1.11-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm 2022-04-25 22:45:08 UTC (rev 293365)
+++ branches/safari-614.1.11-branch/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm 2022-04-25 22:55:51 UTC (rev 293366)
@@ -1431,6 +1431,8 @@
return _scrollView.get();
}
+#if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
+
- (BOOL)findInteractionEnabled
{
return _findInteractionEnabled;
@@ -1467,6 +1469,8 @@
#endif
}
+#endif // !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
+
#endif // PLATFORM(IOS_FAMILY)
#pragma mark - macOS API
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes