Changeset 236107 in webkit
- Timestamp:
- Sep 18, 2018, 2:16:16 AM (8 years ago)
- Location:
- releases/WebKitGTK/webkit-2.22/Source/WebKit
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp (modified) (3 diffs)
-
NetworkProcess/cache/NetworkCacheSpeculativeLoad.h (modified) (1 diff)
-
Shared/Authentication/AuthenticationManager.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.22/Source/WebKit/ChangeLog
r236047 r236107 1 2018-08-27 Alex Christensen <achristensen@webkit.org> 2 3 Pass webPageID and webFrameID to NetworkLoad for speculative loads 4 https://bugs.webkit.org/show_bug.cgi?id=188682 5 6 Reviewed by Youenn Fablet. 7 8 This also removes an authentication shortcut I introduced in r234941 9 10 * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp: 11 (WebKit::NetworkCache::SpeculativeLoad::SpeculativeLoad): 12 (WebKit::NetworkCache::SpeculativeLoad::didReceiveResponse): 13 * Shared/Authentication/AuthenticationManager.cpp: 14 (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge): 15 1 16 2018-08-23 Tim Horton <timothy_horton@apple.com> 2 17 -
releases/WebKitGTK/webkit-2.22/Source/WebKit/NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp
r235038 r236107 42 42 using namespace WebCore; 43 43 44 SpeculativeLoad::SpeculativeLoad(Cache& cache, const GlobalFrameID& frameID, const ResourceRequest& request, std::unique_ptr<NetworkCache::Entry> cacheEntryForValidation, RevalidationCompletionHandler&& completionHandler)44 SpeculativeLoad::SpeculativeLoad(Cache& cache, const GlobalFrameID& globalFrameID, const ResourceRequest& request, std::unique_ptr<NetworkCache::Entry> cacheEntryForValidation, RevalidationCompletionHandler&& completionHandler) 45 45 : m_cache(cache) 46 , m_ frameID(frameID)46 , m_globalFrameID(globalFrameID) 47 47 , m_completionHandler(WTFMove(completionHandler)) 48 48 , m_originalRequest(request) … … 53 53 54 54 NetworkLoadParameters parameters; 55 parameters.webPageID = globalFrameID.first; 56 parameters.webFrameID = globalFrameID.second; 55 57 parameters.sessionID = PAL::SessionID::defaultSessionID(); 56 58 parameters.storedCredentialsPolicy = StoredCredentialsPolicy::Use; … … 88 90 bool validationSucceeded = m_response.httpStatusCode() == 304; // 304 Not Modified 89 91 if (validationSucceeded && m_cacheEntry) 90 m_cacheEntry = m_cache->update(m_originalRequest, m_ frameID, *m_cacheEntry, m_response);92 m_cacheEntry = m_cache->update(m_originalRequest, m_globalFrameID, *m_cacheEntry, m_response); 91 93 else 92 94 m_cacheEntry = nullptr; -
releases/WebKitGTK/webkit-2.22/Source/WebKit/NetworkProcess/cache/NetworkCacheSpeculativeLoad.h
r235038 r236107 65 65 66 66 Ref<Cache> m_cache; 67 GlobalFrameID m_ frameID;67 GlobalFrameID m_globalFrameID; 68 68 RevalidationCompletionHandler m_completionHandler; 69 69 WebCore::ResourceRequest m_originalRequest; -
releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Authentication/AuthenticationManager.cpp
r235038 r236107 112 112 void AuthenticationManager::didReceiveAuthenticationChallenge(uint64_t pageID, uint64_t frameID, const AuthenticationChallenge& authenticationChallenge, ChallengeCompletionHandler&& completionHandler) 113 113 { 114 if (!pageID || !frameID) // Initiated by SpeculativeLoadManager115 return completionHandler(AuthenticationChallengeDisposition::RejectProtectionSpace, { });114 ASSERT(pageID); 115 ASSERT(frameID); 116 116 117 117 uint64_t challengeID = addChallengeToChallengeMap({ pageID, authenticationChallenge, WTFMove(completionHandler) });
Note:
See TracChangeset
for help on using the changeset viewer.