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

Changeset 221050 in webkit


Ignore:
Timestamp:
Aug 22, 2017, 2:54:40 PM (9 years ago)
Author:
Brent Fulgham
Message:

Correct SOUP and cURL builds after r221017.
​https://bugs.webkit.org/show_bug.cgi?id=175846

Reviewed by Michael Catanzaro.

Correct the method signatures for 'cookiesForDOM' on the SOUP and cURL backends.
Note that these ports will need to add specific logic to find/filter secure cookies
if requested by the caller.

  • platform/network/curl/CookieJarCurl.cpp:

(WebCore::CookieJarCurlFileSystem::cookiesForDOM):
(WebCore::cookiesForDOM):

  • platform/network/curl/CookieJarCurl.h:
  • platform/network/soup/CookieJarSoup.cpp:

(WebCore::cookiesForDOM):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r221048 r221050  
     12017-08-22  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Correct SOUP and cURL builds after r221017.
     4        https://bugs.webkit.org/show_bug.cgi?id=175846
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Correct the method signatures for 'cookiesForDOM' on the SOUP and cURL backends.
     9        Note that these ports will need to add specific logic to find/filter secure cookies
     10        if requested by the caller.
     11
     12        * platform/network/curl/CookieJarCurl.cpp:
     13        (WebCore::CookieJarCurlFileSystem::cookiesForDOM):
     14        (WebCore::cookiesForDOM):
     15        * platform/network/curl/CookieJarCurl.h:
     16        * platform/network/soup/CookieJarSoup.cpp:
     17        (WebCore::cookiesForDOM):
     18
    1192017-08-22  Chris Dumez  <cdumez@apple.com>
    220
  • trunk/Source/WebCore/platform/network/curl/CookieJarCurl.cpp

    r220351 r221050  
    288288}
    289289
    290 String CookieJarCurlFileSystem::cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const URL& url)
    291 {
    292     return cookiesForSession(session, firstParty, url, false);
     290std::pair<String, bool> CookieJarCurlFileSystem::cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const URL& url, IncludeSecureCookies)
     291{
     292    // FIXME: This should filter secure cookies out if the caller requests it.
     293    return { cookiesForSession(session, firstParty, url, false), false };
    293294}
    294295
    … …  
    337338// dispatcher functions
    338339
    339 String cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const URL& url)
    340 {
    341     return CurlContext::singleton().cookieJar().cookiesForDOM(session, firstParty, url);
     340std::pair<String, bool> cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const URL& url, IncludeSecureCookies includeSecureCookies)
     341{
     342    return CurlContext::singleton().cookieJar().cookiesForDOM(session, firstParty, url, includeSecureCookies);
    342343}
    343344
  • trunk/Source/WebCore/platform/network/curl/CookieJarCurl.h

    r220351 r221050  
    2929class CookieJarCurl {
    3030public:
    31     virtual String cookiesForDOM(const NetworkStorageSession&, const URL& firstParty, const URL&) = 0;
     31    virtual std::pair<String, bool> cookiesForDOM(const NetworkStorageSession&, const URL& firstParty, const URL&, IncludeSecureCookies) = 0;
    3232    virtual void setCookiesFromDOM(const NetworkStorageSession&, const URL& firstParty, const URL&, const String&) = 0;
    3333    virtual bool cookiesEnabled(const NetworkStorageSession&, const URL& firstParty, const URL&) = 0;
    … …  
    4242
    4343class CookieJarCurlFileSystem : public CookieJarCurl {
    44     String cookiesForDOM(const NetworkStorageSession&, const URL& firstParty, const URL&) override;
     44    std::pair<String, bool> cookiesForDOM(const NetworkStorageSession&, const URL& firstParty, const URL&, IncludeSecureCookies) override;
    4545    void setCookiesFromDOM(const NetworkStorageSession&, const URL& firstParty, const URL&, const String&) override;
    4646    bool cookiesEnabled(const NetworkStorageSession&, const URL& firstParty, const URL&) override;
  • trunk/Source/WebCore/platform/network/soup/CookieJarSoup.cpp

    r213785 r221050  
    8989}
    9090
    91 String cookiesForDOM(const NetworkStorageSession& session, const URL&, const URL& url)
     91std::pair<String, bool> cookiesForDOM(const NetworkStorageSession& session, const URL&, const URL& url, IncludeSecureCookies)
    9292{
     93    // FIXME: SOUP concept of secure cookies should be filtered here.
    9394    return cookiesForSession(session, url, false);
    9495}
Note: See TracChangeset for help on using the changeset viewer.