Changeset 54352 in webkit
- Timestamp:
- Feb 4, 2010 10:09:15 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/network/soup/CookieJarSoup.cpp (modified) (3 diffs)
-
WebCore/platform/network/soup/ResourceHandleSoup.cpp (modified) (3 diffs)
-
WebCore/platform/network/soup/ResourceRequestSoup.cpp (modified) (3 diffs)
-
configure.ac (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r54260 r54352 1 2010-02-04 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha. 4 5 Bump minimum libsoup requirement to 2.29.90 6 7 * configure.ac: 8 1 9 2010-02-02 Gustavo Noronha Silva <gns@gnome.org> 2 10 -
trunk/WebCore/ChangeLog
r54351 r54352 1 2010-02-04 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha. 4 5 Set first party URI in all SoupMessages. This allows libsoup to 6 implement a "no third party cookies" policy in case it wants 7 to. Also start a non-JSC-specific, gtk-specific GOwnPtr module and 8 use it for SoupURI. 9 10 * platform/network/soup/CookieJarSoup.cpp: 11 (WebCore::setCookies): 12 * platform/network/soup/ResourceHandleSoup.cpp: 13 (WebCore::restartedCallback): 14 (WebCore::startHttp): 15 * platform/network/soup/ResourceRequestSoup.cpp: 16 (WebCore::ResourceRequest::toSoupMessage): 17 (WebCore::ResourceRequest::updateFromSoupMessage): 18 1 19 2010-02-04 Pavel Feldman <pfeldman@chromium.org> 2 20 -
trunk/WebCore/platform/network/soup/CookieJarSoup.cpp
r47363 r54352 25 25 #include "CString.h" 26 26 #include "Document.h" 27 #include "GOwnPtrGtk.h" 27 28 #include "KURL.h" 28 29 … … 55 56 } 56 57 57 void setCookies(Document* /*document*/, const KURL& url, const String& value)58 void setCookies(Document* document, const KURL& url, const String& value) 58 59 { 59 60 SoupCookieJar* jar = defaultCookieJar(); … … 61 62 return; 62 63 63 SoupURI* origin = soup_uri_new(url.string().utf8().data()); 64 GOwnPtr<SoupURI> origin(soup_uri_new(url.string().utf8().data())); 65 GOwnPtr<SoupURI> firstParty(soup_uri_new(document->firstPartyForCookies().string().utf8().data())); 64 66 65 soup_cookie_jar_set_cookie(jar, origin, value.utf8().data()); 66 soup_uri_free(origin); 67 soup_cookie_jar_set_cookie_with_first_party(jar, 68 origin.get(), 69 firstParty.get(), 70 value.utf8().data()); 67 71 } 68 72 -
trunk/WebCore/platform/network/soup/ResourceHandleSoup.cpp
r52791 r54352 35 35 #include "FileSystem.h" 36 36 #include "Frame.h" 37 #include "GOwnPtrGtk.h" 37 38 #include "HTTPParsers.h" 38 39 #include "Logging.h" … … 210 211 if (d->client()) 211 212 d->client()->willSendRequest(handle, request, response); 213 214 // Update the first party in case the base URL changed with the redirect 215 String firstPartyString = request.firstPartyForCookies().string(); 216 if (!firstPartyString.isEmpty()) { 217 GOwnPtr<SoupURI> firstParty(soup_uri_new(firstPartyString.utf8().data())); 218 soup_message_set_first_party(d->m_msg, firstParty.get()); 219 } 212 220 } 213 221 … … 485 493 g_signal_connect(d->m_msg, "got-chunk", G_CALLBACK(gotChunkCallback), handle); 486 494 495 String firstPartyString = request.firstPartyForCookies().string(); 496 if (!firstPartyString.isEmpty()) { 497 GOwnPtr<SoupURI> firstParty(soup_uri_new(firstPartyString.utf8().data())); 498 soup_message_set_first_party(d->m_msg, firstParty.get()); 499 } 487 500 g_object_set_data(G_OBJECT(d->m_msg), "resourceHandle", reinterpret_cast<void*>(handle)); 488 501 -
trunk/WebCore/platform/network/soup/ResourceRequestSoup.cpp
r52308 r54352 23 23 #include "CString.h" 24 24 #include "GOwnPtr.h" 25 #include "GOwnPtrGtk.h" 25 26 #include "PlatformString.h" 26 27 … … 43 44 for (HTTPHeaderMap::const_iterator it = headers.begin(); it != end; ++it) 44 45 soup_message_headers_append(soupHeaders, it->first.string().utf8().data(), it->second.utf8().data()); 46 } 47 48 String firstPartyString = firstPartyForCookies().string(); 49 if (!firstPartyString.isEmpty()) { 50 GOwnPtr<SoupURI> firstParty(soup_uri_new(firstPartyString.utf8().data())); 51 soup_message_set_first_party(soupMessage, firstParty.get()); 45 52 } 46 53 … … 70 77 m_httpBody = FormData::create(soupMessage->request_body->data, soupMessage->request_body->length); 71 78 72 // FIXME: m_allowCookies and m_firstPartyForCookies should 73 // probably be handled here and on doUpdatePlatformRequest 74 // somehow. 79 SoupURI* firstParty = soup_message_get_first_party(soupMessage); 80 if (firstParty) { 81 GOwnPtr<gchar> firstPartyURI(soup_uri_to_string(firstParty, FALSE)); 82 m_firstPartyForCookies = KURL(KURL(), String::fromUTF8(firstPartyURI.get())); 83 } 84 85 // FIXME: m_allowCookies should probably be handled here and on 86 // doUpdatePlatformRequest somehow. 75 87 } 76 88 -
trunk/configure.ac
r54260 r54352 191 191 192 192 # minimum base dependencies 193 LIBSOUP_REQUIRED_VERSION=2.2 8.2193 LIBSOUP_REQUIRED_VERSION=2.29.90 194 194 CAIRO_REQUIRED_VERSION=1.6 195 195 FONTCONFIG_REQUIRED_VERSION=2.4
Note: See TracChangeset
for help on using the changeset viewer.