Source/WebKit/ChangeLog

 12019-10-17 Alex Christensen <achristensen@webkit.org>
 2
 3 Remove unused WKWebsiteDataStore setter SPI
 4 https://bugs.webkit.org/show_bug.cgi?id=203114
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 They have been replaced by _WKWebsiteDataStoreConfiguration SPI which was adopted in rdar://problem/56349165
 9
 10 * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
 11 (-[WKWebsiteDataStore _setBoundInterfaceIdentifier:]): Deleted.
 12 (-[WKWebsiteDataStore _boundInterfaceIdentifier]): Deleted.
 13 (-[WKWebsiteDataStore _setAllowsCellularAccess:]): Deleted.
 14 (-[WKWebsiteDataStore _allowsCellularAccess]): Deleted.
 15 (-[WKWebsiteDataStore _setProxyConfiguration:]): Deleted.
 16 (-[WKWebsiteDataStore _proxyConfiguration]): Deleted.
 17 * UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:
 18 * UIProcess/WebsiteData/WebsiteDataStore.h:
 19 (WebKit::WebsiteDataStore::setBoundInterfaceIdentifier): Deleted.
 20 (WebKit::WebsiteDataStore::setAllowsCellularAccess): Deleted.
 21 (WebKit::WebsiteDataStore::setProxyConfiguration): Deleted.
 22
1232019-10-17 Antoine Quint <graouts@apple.com>
224
325 [Web Animations] Enable the Web Animations JavaScript API by default
251246

Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStore.mm

@@- (void)_setServiceWorkerRegistrationDir
326326 _websiteDataStore->setServiceWorkerRegistrationDirectory(directory);
327327}
328328
329 - (void)_setBoundInterfaceIdentifier:(NSString *)identifier
330 {
331  _websiteDataStore->setBoundInterfaceIdentifier(identifier);
332 }
333 
334 - (NSString *)_boundInterfaceIdentifier
335 {
336  return _websiteDataStore->boundInterfaceIdentifier();
337 }
338 
339 - (void)_setAllowsCellularAccess:(BOOL)allows
340 {
341  _websiteDataStore->setAllowsCellularAccess(allows ? WebKit::AllowsCellularAccess::Yes : WebKit::AllowsCellularAccess::No);
342 }
343 
344 - (BOOL)_allowsCellularAccess
345 {
346  return _websiteDataStore->allowsCellularAccess() == WebKit::AllowsCellularAccess::Yes;
347 }
348 
349 - (void)_setProxyConfiguration:(NSDictionary *)configuration
350 {
351  _websiteDataStore->setProxyConfiguration((__bridge CFDictionaryRef)configuration);
352 }
353 
354329- (NSString *)_sourceApplicationBundleIdentifier
355330{
356331 return _websiteDataStore->sourceApplicationBundleIdentifier();

@@- (BOOL)_allowsTLSFallback
382357 return NO;
383358}
384359
385 - (NSDictionary *)_proxyConfiguration
386 {
387  return (__bridge NSDictionary *)_websiteDataStore->proxyConfiguration();
388 }
389 
390360- (NSURL *)_indexedDBDatabaseDirectory
391361{
392362 return [NSURL fileURLWithPath:_websiteDataStore->configuration().indexedDBDatabaseDirectory() isDirectory:YES];
251145

Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h

@@typedef NS_OPTIONS(NSUInteger, _WKWebsit
5252@property (nonatomic, setter=_setCacheStorageDirectory:) NSString* _cacheStorageDirectory WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.cacheStorageDirectory", macos(10.13.4, WK_MAC_TBA), ios(11.3, WK_IOS_TBA));
5353@property (nonatomic, setter=_setServiceWorkerRegistrationDirectory:) NSString* _serviceWorkerRegistrationDirectory WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.serviceWorkerRegistrationDirectory", macos(10.13.4, WK_MAC_TBA), ios(11.3, WK_IOS_TBA));
5454
55 @property (nonatomic, setter=_setBoundInterfaceIdentifier:) NSString *_boundInterfaceIdentifier WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.boundInterfaceIdentifier", macos(10.13.4, WK_MAC_TBA), ios(11.3, WK_IOS_TBA));
56 @property (nonatomic, setter=_setAllowsCellularAccess:) BOOL _allowsCellularAccess WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.allowsCellularAccess", macos(10.13.4, WK_MAC_TBA), ios(11.3, WK_IOS_TBA));
57 @property (nonatomic, setter=_setProxyConfiguration:) NSDictionary *_proxyConfiguration WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.proxyConfiguration", macos(10.14, WK_MAC_TBA), ios(12.0, WK_IOS_TBA));
5855@property (nonatomic, copy, setter=_setSourceApplicationBundleIdentifier:) NSString *_sourceApplicationBundleIdentifier WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.sourceApplicationBundleIdentifier", macos(10.14.4, WK_MAC_TBA), ios(12.2, WK_IOS_TBA));
5956@property (nonatomic, copy, setter=_setSourceApplicationSecondaryIdentifier:) NSString *_sourceApplicationSecondaryIdentifier WK_API_DEPRECATED_WITH_REPLACEMENT("_WKWebsiteDataStoreConfiguration.setSourceApplicationSecondaryIdentifier", macos(10.14.4, WK_MAC_TBA), ios(12.2, WK_IOS_TBA));
6057@property (nonatomic, setter=_setAllowsTLSFallback:) BOOL _allowsTLSFallback WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA));
251145

Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h

@@public:
221221 void removePendingCookie(const WebCore::Cookie&);
222222 void clearPendingCookies();
223223
224  void setBoundInterfaceIdentifier(String&& identifier) { m_resolvedConfiguration->setBoundInterfaceIdentifier(WTFMove(identifier)); }
225224 const String& boundInterfaceIdentifier() { return m_resolvedConfiguration->boundInterfaceIdentifier(); }
226225
227226 const String& sourceApplicationBundleIdentifier() const { return m_resolvedConfiguration->sourceApplicationBundleIdentifier(); }

@@public:
232231
233232 void networkingHasBegun() { m_networkingHasBegun = true; }
234233
235  void setAllowsCellularAccess(AllowsCellularAccess allows) { m_resolvedConfiguration->setAllowsCellularAccess(allows == AllowsCellularAccess::Yes); }
236234 AllowsCellularAccess allowsCellularAccess() { return m_resolvedConfiguration->allowsCellularAccess() ? AllowsCellularAccess::Yes : AllowsCellularAccess::No; }
237235
238236#if PLATFORM(COCOA)
239  void setProxyConfiguration(CFDictionaryRef configuration) { m_resolvedConfiguration->setProxyConfiguration(configuration); }
240237 CFDictionaryRef proxyConfiguration() { return m_resolvedConfiguration->proxyConfiguration(); }
241238#endif
242239
251145