Title: [230505] trunk/Source/WebKit
- Revision
- 230505
- Author
- [email protected]
- Date
- 2018-04-10 17:41:09 -0700 (Tue, 10 Apr 2018)
Log Message
Fix availability annotations for _WKAttachment SPI
https://bugs.webkit.org/show_bug.cgi?id=184473
<rdar://problem/39319732>
Reviewed by Dan Bernstein.
_WKAttachmentInfo is available in WK_MAC_TBA and WK_IOS_TBA, but the SPI method -[_WKAttachment requestInfo:]
is currently available in macOS 10.13.4 and iOS 11.3. Instead, the availability of this SPI should match the
availability of the SPI object it depends on.
* UIProcess/API/Cocoa/_WKAttachment.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (230504 => 230505)
--- trunk/Source/WebKit/ChangeLog 2018-04-11 00:39:59 UTC (rev 230504)
+++ trunk/Source/WebKit/ChangeLog 2018-04-11 00:41:09 UTC (rev 230505)
@@ -1,3 +1,17 @@
+2018-04-10 Wenson Hsieh <[email protected]>
+
+ Fix availability annotations for _WKAttachment SPI
+ https://bugs.webkit.org/show_bug.cgi?id=184473
+ <rdar://problem/39319732>
+
+ Reviewed by Dan Bernstein.
+
+ _WKAttachmentInfo is available in WK_MAC_TBA and WK_IOS_TBA, but the SPI method -[_WKAttachment requestInfo:]
+ is currently available in macOS 10.13.4 and iOS 11.3. Instead, the availability of this SPI should match the
+ availability of the SPI object it depends on.
+
+ * UIProcess/API/Cocoa/_WKAttachment.h:
+
2018-04-10 Chris Dumez <[email protected]>
Avoid constructing a service worker RegistrationStore for private sessions
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/_WKAttachment.h (230504 => 230505)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/_WKAttachment.h 2018-04-11 00:39:59 UTC (rev 230504)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/_WKAttachment.h 2018-04-11 00:41:09 UTC (rev 230505)
@@ -52,7 +52,7 @@
WK_CLASS_AVAILABLE(macosx(10.13.4), ios(11.3))
@interface _WKAttachment : NSObject
-- (void)requestInfo:(void(^)(_WKAttachmentInfo * _Nullable, NSError * _Nullable))completionHandler;
+- (void)requestInfo:(void(^)(_WKAttachmentInfo * _Nullable, NSError * _Nullable))completionHandler WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
- (void)requestData:(void(^)(NSData * _Nullable, NSError * _Nullable))completionHandler;
- (void)setDisplayOptions:(_WKAttachmentDisplayOptions *)options completion:(void(^ _Nullable)(NSError * _Nullable))completionHandler;
- (void)setData:(NSData *)data newContentType:(nullable NSString *)newContentType newFilename:(nullable NSString *)newFilename completion:(void(^ _Nullable)(NSError * _Nullable))completionHandler;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes