⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 238567 in webkit


Ignore:
Timestamp:
Nov 27, 2018, 12:40:40 PM (8 years ago)
Author:
ap@apple.com
Message:

Modernize the check for async _saveCookies existence
https://bugs.webkit.org/show_bug.cgi?id=191987

Reviewed by Dean Jackson.

Source/WebCore/PAL:

  • pal/spi/cf/CFNetworkSPI.h: Also removed a check around _socketStreamProperties,

which exists everywhere.

Source/WebKit:

  • NetworkProcess/cocoa/NetworkProcessCocoa.mm:

(WebKit::NetworkProcess::platformSyncAllCookies):

Source/WTF:

  • wtf/Platform.h: Added a specific macro for this. Not changing the behavior here,

although it seems very likely that we want to do the same on other iOS family OSes.

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r238541 r238567  
     12018-11-27  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Modernize the check for async _saveCookies existence
     4        https://bugs.webkit.org/show_bug.cgi?id=191987
     5
     6        Reviewed by Dean Jackson.
     7
     8        * wtf/Platform.h: Added a specific macro for this. Not changing the behavior here,
     9        although it seems very likely that we want to do the same on other iOS family OSes.
     10
    1112018-11-26  Fujii Hironori  <Hironori.Fujii@sony.com>
    212
  • trunk/Source/WTF/wtf/Platform.h

    r238439 r238567  
    13761376#define USE_IOSURFACE_CANVAS_BACKING_STORE 1
    13771377#endif
     1378
     1379/* FIXME: Should this be enabled or IOS_FAMILY, not just IOS? */
     1380#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || PLATFORM(IOS)
     1381#define HAVE_FOUNDATION_WITH_SAVE_COOKIES_WITH_COMPLETION_HANDLER 1
     1382#endif
  • trunk/Source/WebCore/PAL/ChangeLog

    r238560 r238567  
     12018-11-27  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Modernize the check for async _saveCookies existence
     4        https://bugs.webkit.org/show_bug.cgi?id=191987
     5
     6        Reviewed by Dean Jackson.
     7
     8        * pal/spi/cf/CFNetworkSPI.h: Also removed a check around _socketStreamProperties,
     9        which exists everywhere.
     10
    1112018-11-27  Jer Noble  <jer.noble@apple.com>
    212
  • trunk/Source/WebCore/PAL/pal/spi/cf/CFNetworkSPI.h

    r238298 r238567  
    138138- (CFHTTPCookieStorageRef)_cookieStorage;
    139139- (void)_saveCookies;
     140#if HAVE(FOUNDATION_WITH_SAVE_COOKIES_WITH_COMPLETION_HANDLER)
    140141- (void)_saveCookies:(dispatch_block_t) completionHandler;
     142#endif
    141143@end
    142144
     
    373375
    374376@interface NSURLSessionConfiguration ()
    375 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000)
    376377// FIXME: Remove this once rdar://problem/40650244 is in a build.
    377378@property (copy) NSDictionary *_socketStreamProperties;
    378 #endif
    379379@end
    380380
  • trunk/Source/WebKit/ChangeLog

    r238566 r238567  
     12018-11-27  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Modernize the check for async _saveCookies existence
     4        https://bugs.webkit.org/show_bug.cgi?id=191987
     5
     6        Reviewed by Dean Jackson.
     7
     8        * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
     9        (WebKit::NetworkProcess::platformSyncAllCookies):
     10
    1112018-11-27  Tim Horton  <timothy_horton@apple.com>
    212
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm

    r238283 r238567  
    212212}
    213213
    214 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000)
     214#if HAVE(FOUNDATION_WITH_SAVE_COOKIES_WITH_COMPLETION_HANDLER)
    215215static void saveCookies(NSHTTPCookieStorage *cookieStorage, CompletionHandler<void()>&& completionHandler)
    216216{
     
    228228    ASSERT(hasProcessPrivilege(ProcessPrivilege::CanAccessRawCookies));
    229229    ALLOW_DEPRECATED_DECLARATIONS_BEGIN
    230    
    231 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000)
     230
     231#if HAVE(FOUNDATION_WITH_SAVE_COOKIES_WITH_COMPLETION_HANDLER)
    232232    RefPtr<CallbackAggregator> callbackAggregator = CallbackAggregator::create(WTFMove(completionHander));
    233233    WebCore::NetworkStorageSession::forEach([&] (auto& networkStorageSession) {
Note: See TracChangeset for help on using the changeset viewer.