RESOLVED FIXED 179238
Use WK_IOS_TBA instead of WK_MAC_TBA to indicate availability of private functions on iOS
https://bugs.webkit.org/show_bug.cgi?id=179238
Summary Use WK_IOS_TBA instead of WK_MAC_TBA to indicate availability of private func...
Frédéric Wang (:fredw)
Reported 2017-11-03 04:44:13 PDT
The changes happened in r224057 and r223207. Also I recently upgraded Xcode. These are the errors I get: /Users/fred/WebKit/Tools/TestWebKitAPI/Tests/WebKitCocoa/NowPlayingControlsTests .mm:63:11: error: '_requestActiveNowPlayingSessionInfo:' is unavailable: not available on iOS [self _requestActiveNowPlayingSessionInfo:completionHandler]; ^ In file included from /Users/fred/WebKit/Tools/TestWebKitAPI/Tests/WebKitCocoa/NowPlayingControlsTests.mm:32: /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/WebKit.framework/PrivateHeaders/WKWebViewPrivate.h:439:1: note: '_requestActiveNowPlayingSessionInfo:' has been explicitly marked unavailable here - (void)_requestActiveNowPlayingSessionInfo:(void(^)(BOOL, NSString*, do... ^ 1 error generated. /Users/fred/WebKit/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm:84:27: er ror: '_setCacheStoragePerOriginQuota:' is unavailable: not available on iOS [poolWebsiteDataStore _setCacheStoragePerOriginQuota: 400 * 1024]; ^ In file included from /Users/fred/WebKit/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm:46: /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/WebKit.framework/PrivateHeaders/WKWebsiteDataStorePrivate.h:48:74: note: property '_cacheStoragePerOriginQuota' is declared unavailable here ...(nonatomic, setter=_setCacheStoragePerOriginQuota:) NSUInteger _cacheSto... ^ /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/WebKit.framework/PrivateHeaders/WKWebsiteDataStorePrivate.h:48:74: note: '_setCacheStoragePerOriginQuota:' has been explicitly marked unavailable here /Users/fred/WebKit/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm:87:31: error: '_setCacheStorageDirectory:' is unavailable: not available on iOS [poolWebsiteDataStore _setCacheStorageDirectory: cacheStorageDirectory]; ^ In file included from /Users/fred/WebKit/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm:46: /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/WebKit.framework/PrivateHeaders/WKWebsiteDataStorePrivate.h:49:68: note: property '_cacheStorageDirectory' is declared unavailable here @property (nonatomic, setter=_setCacheStorageDirectory:) NSString* _cach... ^ /Users/fred/WebKit/WebKitBuild/Debug-iphonesimulator/WebKit.framework/PrivateHeaders/WKWebsiteDataStorePrivate.h:49:68: note: '_setCacheStorageDirectory:' has been explicitly marked unavailable here 2 errors generated.
Attachments
Patch (1.70 KB, patch)
2017-11-03 04:45 PDT, Frédéric Wang (:fredw)
no flags
Patch (3.81 KB, patch)
2017-11-03 07:50 PDT, Frédéric Wang (:fredw)
darin: review+
Frédéric Wang (:fredw)
Comment 1 2017-11-03 04:45:50 PDT
Created attachment 325882 [details] Patch This patch fixes the build errors, but I have no ideas whether it is correct.
Ali Juma
Comment 2 2017-11-03 06:36:24 PDT
Is the problem that on lines 48 and 49 of WKWebsiteDataStorePrivate.h, the ios version is set to WK_MAC_TBA instead of WK_IOS_TBA?
Frédéric Wang (:fredw)
Comment 3 2017-11-03 07:50:05 PDT
Frédéric Wang (:fredw)
Comment 4 2017-11-03 08:11:10 PDT
Radar WebKit Bug Importer
Comment 5 2017-11-15 12:14:30 PST
Note You need to log in before you can comment on or make changes to this bug.