Changeset 221050 in webkit
- Timestamp:
- Aug 22, 2017, 2:54:40 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
platform/network/curl/CookieJarCurl.cpp (modified) (2 diffs)
-
platform/network/curl/CookieJarCurl.h (modified) (2 diffs)
-
platform/network/soup/CookieJarSoup.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r221048 r221050 1 2017-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 1 19 2017-08-22 Chris Dumez <cdumez@apple.com> 2 20 -
trunk/Source/WebCore/platform/network/curl/CookieJarCurl.cpp
r220351 r221050 288 288 } 289 289 290 String CookieJarCurlFileSystem::cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const URL& url) 291 { 292 return cookiesForSession(session, firstParty, url, false); 290 std::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 }; 293 294 } 294 295 … … 337 338 // dispatcher functions 338 339 339 String cookiesForDOM(const NetworkStorageSession& session, const URL& firstParty, const URL& url)340 { 341 return CurlContext::singleton().cookieJar().cookiesForDOM(session, firstParty, url );340 std::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); 342 343 } 343 344 -
trunk/Source/WebCore/platform/network/curl/CookieJarCurl.h
r220351 r221050 29 29 class CookieJarCurl { 30 30 public: 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; 32 32 virtual void setCookiesFromDOM(const NetworkStorageSession&, const URL& firstParty, const URL&, const String&) = 0; 33 33 virtual bool cookiesEnabled(const NetworkStorageSession&, const URL& firstParty, const URL&) = 0; … … 42 42 43 43 class 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; 45 45 void setCookiesFromDOM(const NetworkStorageSession&, const URL& firstParty, const URL&, const String&) override; 46 46 bool cookiesEnabled(const NetworkStorageSession&, const URL& firstParty, const URL&) override; -
trunk/Source/WebCore/platform/network/soup/CookieJarSoup.cpp
r213785 r221050 89 89 } 90 90 91 String cookiesForDOM(const NetworkStorageSession& session, const URL&, const URL& url)91 std::pair<String, bool> cookiesForDOM(const NetworkStorageSession& session, const URL&, const URL& url, IncludeSecureCookies) 92 92 { 93 // FIXME: SOUP concept of secure cookies should be filtered here. 93 94 return cookiesForSession(session, url, false); 94 95 }
Note:
See TracChangeset
for help on using the changeset viewer.