Changeset 202438 in webkit


Ignore:
Timestamp:
Jun 24, 2016 12:26:50 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Use _CFHTTPCookieStorageGetDefault directly instead of NSHTTPCookieStorage to get default cookie storage
https://bugs.webkit.org/show_bug.cgi?id=159095
rdar://problem/26630073

Patch by Amir Alavi <aalavi@apple.com> on 2016-06-24
Reviewed by Brent Fulgham.

No new tests, it isn't possible to test this in a LayoutTest.

  • platform/network/mac/CookieJarMac.mm:

(WebCore::httpCookiesForURL): Get a CFHTTPCookieStorageRef when no cookie storage is provided to match the case when cookie storage is provided.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202436 r202438  
     12016-06-24  Amir Alavi  <aalavi@apple.com>
     2
     3        Use _CFHTTPCookieStorageGetDefault directly instead of NSHTTPCookieStorage to get default cookie storage
     4        https://bugs.webkit.org/show_bug.cgi?id=159095
     5        rdar://problem/26630073
     6
     7        Reviewed by Brent Fulgham.
     8
     9        No new tests, it isn't possible to test this in a LayoutTest.
     10
     11        * platform/network/mac/CookieJarMac.mm:
     12        (WebCore::httpCookiesForURL): Get a CFHTTPCookieStorageRef when no cookie storage is provided to match the case when cookie storage is provided.
     13
    1142016-06-24  Enrica Casucci  <enrica@apple.com>
    215
  • trunk/Source/WebCore/platform/network/mac/CookieJarMac.mm

    r202279 r202438  
    4848static NSArray *httpCookiesForURL(CFHTTPCookieStorageRef cookieStorage, NSURL *firstParty, NSURL *url)
    4949{
    50     if (!cookieStorage) {
    51         // FIXME: The fallback to NSHTTPCookieStorage should not be present when USE(CFNETWORK) is defined.
    52         return [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookiesForURL:url];
    53     }
     50    if (!cookieStorage)
     51        cookieStorage = _CFHTTPCookieStorageGetDefault(kCFAllocatorDefault);
    5452
    5553    bool secure = ![[url scheme] caseInsensitiveCompare:@"https"];
Note: See TracChangeset for help on using the changeset viewer.