Changeset 230505 in webkit


Ignore:
Timestamp:
Apr 10, 2018 5:41:09 PM (6 years ago)
Author:
Wenson Hsieh
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:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r230500 r230505  
     12018-04-10  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Fix availability annotations for _WKAttachment SPI
     4        https://bugs.webkit.org/show_bug.cgi?id=184473
     5        <rdar://problem/39319732>
     6
     7        Reviewed by Dan Bernstein.
     8
     9        _WKAttachmentInfo is available in WK_MAC_TBA and WK_IOS_TBA, but the SPI method -[_WKAttachment requestInfo:]
     10        is currently available in macOS 10.13.4 and iOS 11.3. Instead, the availability of this SPI should match the
     11        availability of the SPI object it depends on.
     12
     13        * UIProcess/API/Cocoa/_WKAttachment.h:
     14
    1152018-04-10  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebKit/UIProcess/API/Cocoa/_WKAttachment.h

    r230121 r230505  
    5353WK_CLASS_AVAILABLE(macosx(10.13.4), ios(11.3))
    5454@interface _WKAttachment : NSObject
    55 - (void)requestInfo:(void(^)(_WKAttachmentInfo * _Nullable, NSError * _Nullable))completionHandler;
     55- (void)requestInfo:(void(^)(_WKAttachmentInfo * _Nullable, NSError * _Nullable))completionHandler WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
    5656- (void)requestData:(void(^)(NSData * _Nullable, NSError * _Nullable))completionHandler;
    5757- (void)setDisplayOptions:(_WKAttachmentDisplayOptions *)options completion:(void(^ _Nullable)(NSError * _Nullable))completionHandler;
Note: See TracChangeset for help on using the changeset viewer.