Title: [281780] trunk/Source/WebKit
Revision
281780
Author
[email protected]
Date
2021-08-30 15:41:08 -0700 (Mon, 30 Aug 2021)

Log Message

Update availability macros for APIs available in iOS 14.5 and macOS 11.3
https://bugs.webkit.org/show_bug.cgi?id=229466

Patch by Alex Christensen <[email protected]> on 2021-08-30
Reviewed by Chris Dumez.

We mistakenly updated them to 15.0/12.0

* UIProcess/API/Cocoa/WKDownload.h:
* UIProcess/API/Cocoa/WKDownloadDelegate.h:
* UIProcess/API/Cocoa/WKNavigationAction.h:
* UIProcess/API/Cocoa/WKNavigationDelegate.h:
* UIProcess/API/Cocoa/WKPreferences.h:
* UIProcess/API/Cocoa/WKWebView.h:
* UIProcess/API/Cocoa/WKWebViewConfiguration.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (281779 => 281780)


--- trunk/Source/WebKit/ChangeLog	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/ChangeLog	2021-08-30 22:41:08 UTC (rev 281780)
@@ -1,5 +1,22 @@
 2021-08-30  Alex Christensen  <[email protected]>
 
+        Update availability macros for APIs available in iOS 14.5 and macOS 11.3
+        https://bugs.webkit.org/show_bug.cgi?id=229466
+
+        Reviewed by Chris Dumez.
+
+        We mistakenly updated them to 15.0/12.0
+
+        * UIProcess/API/Cocoa/WKDownload.h:
+        * UIProcess/API/Cocoa/WKDownloadDelegate.h:
+        * UIProcess/API/Cocoa/WKNavigationAction.h:
+        * UIProcess/API/Cocoa/WKNavigationDelegate.h:
+        * UIProcess/API/Cocoa/WKPreferences.h:
+        * UIProcess/API/Cocoa/WKWebView.h:
+        * UIProcess/API/Cocoa/WKWebViewConfiguration.h:
+
+2021-08-30  Alex Christensen  <[email protected]>
+
         Migrate PrivateClickMeasurements from ResourceLoadStatistics database to new database
         https://bugs.webkit.org/show_bug.cgi?id=229646
 

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKDownload.h (281779 => 281780)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKDownload.h	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKDownload.h	2021-08-30 22:41:08 UTC (rev 281780)
@@ -33,7 +33,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-WK_CLASS_AVAILABLE(macos(12.0), ios(15.0))
+WK_CLASS_AVAILABLE(macos(11.3), ios(14.5))
 @interface WKDownload : NSObject<NSProgressReporting>
 
 /* @abstract The request used to initiate this download.

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKDownloadDelegate.h (281779 => 281780)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKDownloadDelegate.h	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKDownloadDelegate.h	2021-08-30 22:41:08 UTC (rev 281780)
@@ -36,7 +36,7 @@
 typedef NS_ENUM(NSInteger, WKDownloadRedirectPolicy) {
     WKDownloadRedirectPolicyCancel,
     WKDownloadRedirectPolicyAllow,
-} NS_SWIFT_NAME(WKDownload.RedirectPolicy) WK_API_AVAILABLE(macos(12.0), ios(15.0));
+} NS_SWIFT_NAME(WKDownload.RedirectPolicy) WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 NS_ASSUME_NONNULL_BEGIN
 

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationAction.h (281779 => 281780)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationAction.h	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationAction.h	2021-08-30 22:41:08 UTC (rev 281780)
@@ -78,7 +78,7 @@
 
 /*! @abstract A value indicating whether the web content used a download attribute to indicate that this should be downloaded.
 */
-@property (nonatomic, readonly) BOOL shouldPerformDownload WK_API_AVAILABLE(macos(12.0), ios(15.0));
+@property (nonatomic, readonly) BOOL shouldPerformDownload WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 #if !TARGET_OS_IPHONE
 

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationDelegate.h (281779 => 281780)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationDelegate.h	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationDelegate.h	2021-08-30 22:41:08 UTC (rev 281780)
@@ -46,7 +46,7 @@
 typedef NS_ENUM(NSInteger, WKNavigationActionPolicy) {
     WKNavigationActionPolicyCancel,
     WKNavigationActionPolicyAllow,
-    WKNavigationActionPolicyDownload WK_API_AVAILABLE(macos(12.0), ios(15.0)),
+    WKNavigationActionPolicyDownload WK_API_AVAILABLE(macos(11.3), ios(14.5)),
 } WK_API_AVAILABLE(macos(10.10), ios(8.0));
 
 /*! @enum WKNavigationResponsePolicy
@@ -58,7 +58,7 @@
 typedef NS_ENUM(NSInteger, WKNavigationResponsePolicy) {
     WKNavigationResponsePolicyCancel,
     WKNavigationResponsePolicyAllow,
-    WKNavigationResponsePolicyDownload WK_API_AVAILABLE(macos(12.0), ios(15.0)),
+    WKNavigationResponsePolicyDownload WK_API_AVAILABLE(macos(11.3), ios(14.5)),
 } WK_API_AVAILABLE(macos(10.10), ios(8.0));
 
 /*! A class conforming to the WKNavigationDelegate protocol can provide
@@ -176,7 +176,7 @@
  @param download The download.
  @discussion The download needs its delegate to be set to receive updates about its progress.
 */
-- (void)webView:(WKWebView *)webView navigationAction:(WKNavigationAction *)navigationAction didBecomeDownload:(WKDownload *)download WK_API_AVAILABLE(macos(12.0), ios(15.0));
+- (void)webView:(WKWebView *)webView navigationAction:(WKNavigationAction *)navigationAction didBecomeDownload:(WKDownload *)download WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 /*
  @abstract Called after using WKNavigationResponsePolicyDownload.
@@ -185,7 +185,7 @@
  @param download The download.
  @discussion The download needs its delegate to be set to receive updates about its progress.
 */
-- (void)webView:(WKWebView *)webView navigationResponse:(WKNavigationResponse *)navigationResponse didBecomeDownload:(WKDownload *)download WK_API_AVAILABLE(macos(12.0), ios(15.0));
+- (void)webView:(WKWebView *)webView navigationResponse:(WKNavigationResponse *)navigationResponse didBecomeDownload:(WKDownload *)download WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 @end
 

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.h (281779 => 281780)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.h	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.h	2021-08-30 22:41:08 UTC (rev 281780)
@@ -62,7 +62,7 @@
 
 /*! @abstract A Boolean value indicating whether text interaction is disabled.
 */
-@property (nonatomic, getter=isTextInteractionEnabled) BOOL textInteractionEnabled WK_API_AVAILABLE(macos(12.0), ios(15.0));
+@property (nonatomic, getter=isTextInteractionEnabled) BOOL textInteractionEnabled WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 @end
 

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.h (281779 => 281780)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.h	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.h	2021-08-30 22:41:08 UTC (rev 281780)
@@ -66,7 +66,7 @@
     WKMediaPlaybackStatePlaying,
     WKMediaPlaybackStatePaused,
     WKMediaPlaybackStateSuspended
-} WK_API_AVAILABLE(macos(12.0), ios(15.0));
+} WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 typedef NS_ENUM(NSInteger, WKMediaCaptureState) {
     WKMediaCaptureStateNone,
@@ -508,9 +508,9 @@
 /* @abstract Begins a download in the context of the currently displayed webpage as if the WKNavigationDelegate turned a navigation into a download instead
  @param request The request specifying the URL to download.
  @param completionHandler A block called when the download has started.
- @discussion The download needs its delegate to be set in the completionHandler to receive updates about its progress.
+ @discussion The download needs its delegate to be set in the completionHandler to receive updates about its progress.
  */
-- (void)startDownloadUsingRequest:(NSURLRequest *)request completionHandler:(void(^)(WKDownload *))completionHandler WK_API_AVAILABLE(macos(12.0), ios(15.0));
+- (void)startDownloadUsingRequest:(NSURLRequest *)request completionHandler:(void(^)(WKDownload *))completionHandler WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 /* @abstract Resumes a download that failed or was canceled.
  @param resumeData Data from a WKDownloadDelegate's didFailWithError or a WKDownload's cancel completionHandler.
@@ -517,7 +517,7 @@
  @param completionHandler A block called when the download has resumed.
  @discussion The download needs its delegate to be set in the completionHandler to receive updates about its progress.
  */
-- (void)resumeDownloadFromResumeData:(NSData *)resumeData completionHandler:(void(^)(WKDownload *))completionHandler WK_API_AVAILABLE(macos(12.0), ios(15.0));
+- (void)resumeDownloadFromResumeData:(NSData *)resumeData completionHandler:(void(^)(WKDownload *))completionHandler WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 /* @abstract The media type for the WKWebView
  @discussion The value of mediaType will override the normal value of the CSS media property.

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.h (281779 => 281780)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.h	2021-08-30 22:35:31 UTC (rev 281779)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.h	2021-08-30 22:41:08 UTC (rev 281780)
@@ -131,7 +131,7 @@
 /*! @abstract A Boolean value indicating whether HTTP requests to servers known to support HTTPS should be automatically upgraded to HTTPS requests.
  @discussion The default value is YES.
  */
-@property (nonatomic) BOOL upgradeKnownHostsToHTTPS WK_API_AVAILABLE(macos(12.0), ios(15.0));
+@property (nonatomic) BOOL upgradeKnownHostsToHTTPS WK_API_AVAILABLE(macos(11.3), ios(14.5));
 
 @property (nonatomic) WKAudiovisualMediaTypes mediaTypesRequiringUserActionForPlayback WK_API_AVAILABLE(macos(10.12), ios(10.0));
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to