Changeset 175175 in webkit


Ignore:
Timestamp:
Oct 24, 2014 1:23:31 PM (10 years ago)
Author:
ap@apple.com
Message:

REGRESSION(r174877): WebProcess sends an empty Cookies HTTP header
https://bugs.webkit.org/show_bug.cgi?id=138053

Reviewed by Chris Dumez.

Fixes existing tests.

  • platform/network/mac/CookieJarMac.mm: (WebCore::cookiesForSession): Restore the

behavior of returning a null string when there are no cookies.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175174 r175175  
     12014-10-24  Alexey Proskuryakov  <ap@apple.com>
     2
     3        REGRESSION(r174877): WebProcess sends an empty Cookies HTTP header
     4        https://bugs.webkit.org/show_bug.cgi?id=138053
     5
     6        Reviewed by Chris Dumez.
     7
     8        Fixes existing tests.
     9
     10        * platform/network/mac/CookieJarMac.mm: (WebCore::cookiesForSession): Restore the
     11        behavior of returning a null string when there are no cookies.
     12
    1132014-10-24  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebCore/platform/network/mac/CookieJarMac.mm

    r174877 r175175  
    7777
    7878    NSArray *cookies = wkHTTPCookiesForURL(session.cookieStorage().get(), firstParty, url);
     79    if (![cookies count])
     80        return String(); // Return a null string, not an empty one that StringBuilder would create below.
     81
    7982    StringBuilder cookiesBuilder;
    8083    for (NSHTTPCookie *cookie in cookies) {
Note: See TracChangeset for help on using the changeset viewer.