Changeset 195589 in webkit
- Timestamp:
- Jan 26, 2016 8:08:21 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r195586 r195589 1 2016-01-26 Daniel Bates <dabates@apple.com> 2 3 WebKitTestRunner: Credential cache is not cleared between tests 4 https://bugs.webkit.org/show_bug.cgi?id=153407 5 <rdar://problem/24280834> 6 7 Reviewed by Alexey Proskuryakov. 8 9 Expose SPI to call CredentialStorage::clearCredentials() on the default network storage 10 session to clear cached credentials. 11 12 * NetworkProcess/NetworkProcess.cpp: 13 (WebKit::NetworkProcess::clearCachedCredentials): Added. 14 * NetworkProcess/NetworkProcess.h: 15 * NetworkProcess/NetworkProcess.messages.in: Added message ClearCachedCredentials(). 16 * UIProcess/API/C/WKContext.cpp: 17 (WKContextClearCachedCredentials): Added. 18 * UIProcess/API/C/WKContextPrivate.h: 19 * UIProcess/WebProcessPool.cpp: 20 (WebKit::WebProcessPool::clearCachedCredentials): Notify all web processes and the 21 network process to clear cached credentials. 22 * UIProcess/WebProcessPool.h: 23 * WebProcess/WebProcess.cpp: 24 (WebKit::WebProcess::clearCachedCredentials): Clear cached credentials in the default 25 network storage session. 26 * WebProcess/WebProcess.h: 27 * WebProcess/WebProcess.messages.in: Added message ClearCachedCredentials(). 28 1 29 2016-01-26 Mario Sanchez Prada <mario@endlessm.com> 2 30 -
trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp
r195558 r195589 256 256 } 257 257 258 void NetworkProcess::clearCachedCredentials() 259 { 260 NetworkStorageSession::defaultStorageSession().credentialStorage().clearCredentials(); 261 } 262 258 263 void NetworkProcess::ensurePrivateBrowsingSession(SessionID sessionID) 259 264 { -
trunk/Source/WebKit2/NetworkProcess/NetworkProcess.h
r195558 r195589 147 147 void deleteWebsiteDataForOrigins(WebCore::SessionID, uint64_t websiteDataTypes, const Vector<WebCore::SecurityOriginData>& origins, const Vector<String>& cookieHostNames, uint64_t callbackID); 148 148 149 void clearCachedCredentials(); 150 149 151 // FIXME: This should take a session ID so we can identify which disk cache to delete. 150 152 void clearDiskCache(std::chrono::system_clock::time_point modifiedSince, std::function<void ()> completionHandler); -
trunk/Source/WebKit2/NetworkProcess/NetworkProcess.messages.in
r195558 r195589 33 33 #endif 34 34 35 ClearCachedCredentials() 36 35 37 EnsurePrivateBrowsingSession(WebCore::SessionID sessionID) 36 38 DestroyPrivateBrowsingSession(WebCore::SessionID sessionID) -
trunk/Source/WebKit2/UIProcess/API/C/WKContext.cpp
r195558 r195589 539 539 } 540 540 541 void WKContextClearCachedCredentials(WKContextRef context) 542 { 543 toImpl(context)->clearCachedCredentials(); 544 } 545 541 546 WKDictionaryRef WKContextCopyPlugInAutoStartOriginHashes(WKContextRef contextRef) 542 547 { -
trunk/Source/WebKit2/UIProcess/API/C/WKContextPrivate.h
r195558 r195589 83 83 WK_EXPORT void WKContextUseTestingNetworkSession(WKContextRef context); 84 84 85 // Test only. Should be called before running a test. 86 WK_EXPORT void WKContextClearCachedCredentials(WKContextRef context); 87 85 88 typedef void (*WKContextInvalidMessageFunction)(WKStringRef messageName); 86 89 WK_EXPORT void WKContextSetInvalidMessageFunction(WKContextInvalidMessageFunction invalidMessageFunction); -
trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp
r195558 r195589 1074 1074 } 1075 1075 1076 void WebProcessPool::clearCachedCredentials() 1077 { 1078 sendToAllProcesses(Messages::WebProcess::ClearCachedCredentials()); 1079 if (m_networkProcess) 1080 m_networkProcess->send(Messages::NetworkProcess::ClearCachedCredentials(), 0); 1081 } 1082 1076 1083 void WebProcessPool::allowSpecificHTTPSCertificateForHost(const WebCertificateInfo* certificate, const String& host) 1077 1084 { -
trunk/Source/WebKit2/UIProcess/WebProcessPool.h
r195558 r195589 242 242 bool isUsingTestingNetworkSession() const { return m_shouldUseTestingNetworkSession; } 243 243 244 void clearCachedCredentials(); 245 244 246 void allowSpecificHTTPSCertificateForHost(const WebCertificateInfo*, const String& host); 245 247 -
trunk/Source/WebKit2/WebProcess/WebProcess.cpp
r195558 r195589 499 499 } 500 500 501 void WebProcess::clearCachedCredentials() 502 { 503 NetworkStorageSession::defaultStorageSession().credentialStorage().clearCredentials(); 504 } 505 501 506 WebPage* WebProcess::focusedWebPage() const 502 507 { -
trunk/Source/WebKit2/WebProcess/WebProcess.h
r195558 r195589 211 211 void platformInitializeWebProcess(WebProcessCreationParameters&&); 212 212 213 void clearCachedCredentials(); 214 213 215 void platformTerminate(); 214 216 void registerURLSchemeAsEmptyDocument(const String&); -
trunk/Source/WebKit2/WebProcess/WebProcess.messages.in
r195558 r195589 45 45 UserPreferredLanguagesChanged(Vector<String> languages) 46 46 FullKeyboardAccessModeChanged(bool fullKeyboardAccessEnabled) 47 48 ClearCachedCredentials() 47 49 48 50 // Legacy private browsing session is per process. Individual pages or page groups may use the private session or the default one as appropriate. -
trunk/Tools/ChangeLog
r195587 r195589 1 2016-01-26 Daniel Bates <dabates@apple.com> 2 3 WebKitTestRunner: Credential cache is not cleared between tests 4 https://bugs.webkit.org/show_bug.cgi?id=153407 5 <rdar://problem/24280834> 6 7 Reviewed by Alexey Proskuryakov. 8 9 * WebKitTestRunner/TestController.cpp: 10 (WTR::TestController::resetStateToConsistentValues): Call WKContextClearCachedCredentials() 11 to clear cached credentials. 12 1 13 2016-01-26 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 14 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r195558 r195589 715 715 WKContextSetCacheModel(TestController::singleton().context(), kWKCacheModelDocumentBrowser); 716 716 717 WKContextClearCachedCredentials(TestController::singleton().context()); 718 717 719 // FIXME: This function should also ensure that there is only one page open. 718 720
Note: See TracChangeset
for help on using the changeset viewer.