Changeset 222706 in webkit
- Timestamp:
- Oct 2, 2017 5:55:12 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r222705 r222706 1 2017-10-02 Tomas Popela <tpopela@redhat.com> 2 3 [SOUP] Default kerberos authentication credentials are used in ephemeral (private) mode 4 https://bugs.webkit.org/show_bug.cgi?id=177738 5 6 Reviewed by Carlos Garcia Campos. 7 8 If the session is ephemeral then don't enable the Negotiate support in 9 our SoupSession. 10 11 * platform/network/soup/NetworkStorageSessionSoup.cpp: Pass the 12 session ID if it's known to the SoupNetworkSession. 13 (WebCore::NetworkStorageSession::ensurePrivateBrowsingSession): 14 (WebCore::NetworkStorageSession::getOrCreateSoupNetworkSession const): 15 * platform/network/soup/SoupNetworkSession.cpp: 16 (WebCore::SoupNetworkSession::SoupNetworkSession): If the session is 17 ephemeral (based on given session ID) then don't activate the 18 Negotiate support in SoupSession. 19 * platform/network/soup/SoupNetworkSession.h: 20 Change the constructor to accept the PAL::SessionID with the default 21 value set to PAL::SessionID::emptySessionID. 22 1 23 2017-10-02 Joanmarie Diggs <jdiggs@igalia.com> 2 24 -
trunk/Source/WebCore/platform/network/soup/NetworkStorageSessionSoup.cpp
r220857 r222706 84 84 ASSERT(sessionID != PAL::SessionID::defaultSessionID()); 85 85 ASSERT(!globalSessionMap().contains(sessionID)); 86 globalSessionMap().add(sessionID, std::make_unique<NetworkStorageSession>(sessionID, std::make_unique<SoupNetworkSession>( )));86 globalSessionMap().add(sessionID, std::make_unique<NetworkStorageSession>(sessionID, std::make_unique<SoupNetworkSession>(sessionID))); 87 87 } 88 88 … … 100 100 { 101 101 if (!m_session) 102 m_session = std::make_unique<SoupNetworkSession>(m_ cookieStorage.get());102 m_session = std::make_unique<SoupNetworkSession>(m_sessionID, m_cookieStorage.get()); 103 103 return *m_session; 104 104 } -
trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.cpp
r220903 r222706 114 114 #endif 115 115 116 SoupNetworkSession::SoupNetworkSession( SoupCookieJar* cookieJar)116 SoupNetworkSession::SoupNetworkSession(PAL::SessionID sessionID, SoupCookieJar* cookieJar) 117 117 : m_soupSession(adoptGRef(soup_session_async_new())) 118 118 { … … 148 148 149 149 #if SOUP_CHECK_VERSION(2, 53, 92) 150 if (soup_auth_negotiate_supported() ) {150 if (soup_auth_negotiate_supported() && !sessionID.isEphemeral()) { 151 151 g_object_set(m_soupSession.get(), 152 152 SOUP_SESSION_ADD_FEATURE_BY_TYPE, SOUP_TYPE_AUTH_NEGOTIATE, -
trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.h
r220903 r222706 28 28 29 29 #include <glib-object.h> 30 #include <pal/SessionID.h> 30 31 #include <wtf/Function.h> 31 32 #include <wtf/Noncopyable.h> … … 48 49 WTF_MAKE_NONCOPYABLE(SoupNetworkSession); WTF_MAKE_FAST_ALLOCATED; 49 50 public: 50 explicit SoupNetworkSession( SoupCookieJar* = nullptr);51 explicit SoupNetworkSession(PAL::SessionID = PAL::SessionID::defaultSessionID(), SoupCookieJar* = nullptr); 51 52 ~SoupNetworkSession(); 52 53
Note: See TracChangeset
for help on using the changeset viewer.