Changeset 228006 in webkit


Ignore:
Timestamp:
Feb 2, 2018 5:54:14 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r227964.
https://bugs.webkit.org/show_bug.cgi?id=182423

It broke several unit tests (Requested by KaL on #webkit).

Reverted changeset:

"[SOUP] Ensure domain is valid when converting a WebCore
Cookie to Soup"
https://bugs.webkit.org/show_bug.cgi?id=182328
https://trac.webkit.org/changeset/227964

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r227997 r228006  
     12018-02-02  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r227964.
     4        https://bugs.webkit.org/show_bug.cgi?id=182423
     5
     6        It broke several unit tests (Requested by KaL on #webkit).
     7
     8        Reverted changeset:
     9
     10        "[SOUP] Ensure domain is valid when converting a WebCore
     11        Cookie to Soup"
     12        https://bugs.webkit.org/show_bug.cgi?id=182328
     13        https://trac.webkit.org/changeset/227964
     14
    1152018-02-01  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebCore/platform/network/soup/CookieSoup.cpp

    r227964 r228006  
    6161        return nullptr;
    6262
    63     // soup_cookie_new() will handle the given domain as a hostname if it doesn't start with '.'.
    64     auto cookieDomain = domain.utf8();
    65     if (cookieDomain.length() && !g_hostname_is_ip_address(cookieDomain.data()) && cookieDomain.data()[0] != '.')
    66         cookieDomain = makeString('.', domain).utf8();
    67 
    6863    SoupCookie* soupCookie = soup_cookie_new(name.utf8().data(), value.utf8().data(),
    69         cookieDomain.data(), path.utf8().data(), -1);
     64        domain.utf8().data(), path.utf8().data(), -1);
    7065
    7166    soup_cookie_set_http_only(soupCookie, httpOnly);
Note: See TracChangeset for help on using the changeset viewer.