Changeset 122103 in webkit


Ignore:
Timestamp:
Jul 9, 2012 5:28:12 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

[SOUP] Use soup_cookie_jar_is_persistent() to set whether cookie is a session one or not
https://bugs.webkit.org/show_bug.cgi?id=90769

Reviewed by Gustavo Noronha Silva.

It's currently set to false, because there were no API to know
whether cookies were persistent or not. Now that we bumped libsoup
requirements, we can use soup_cookie_jar_is_persistent().

  • platform/network/soup/CookieJarSoup.cpp:

(WebCore::getRawCookies):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r122101 r122103  
     12012-07-09  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] Use soup_cookie_jar_is_persistent() to set whether cookie is a session one or not
     4        https://bugs.webkit.org/show_bug.cgi?id=90769
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        It's currently set to false, because there were no API to know
     9        whether cookies were persistent or not. Now that we bumped libsoup
     10        requirements, we can use soup_cookie_jar_is_persistent().
     11
     12        * platform/network/soup/CookieJarSoup.cpp:
     13        (WebCore::getRawCookies):
     14
    1152012-07-09  Taiju Tsuiki  <tzik@chromium.org>
    216
  • trunk/Source/WebCore/platform/network/soup/CookieJarSoup.cpp

    r120145 r122103  
    163163        if (!soup_cookie_applies_to_uri(cookie.get(), uri.get()))
    164164            continue;
    165         // FIXME: we are currently passing false always for session because there's no API to know
    166         // whether SoupCookieJar is persistent or not. We could probably add soup_cookie_jar_is_persistent().
    167165        rawCookies.append(Cookie(String::fromUTF8(cookie->name), String::fromUTF8(cookie->value), String::fromUTF8(cookie->domain),
    168166                                 String::fromUTF8(cookie->path), static_cast<double>(soup_date_to_time_t(cookie->expires)) * 1000,
    169                                  cookie->http_only, cookie->secure, false));
     167                                 cookie->http_only, cookie->secure, soup_cookie_jar_is_persistent(jar)));
    170168    }
    171169
Note: See TracChangeset for help on using the changeset viewer.