Changeset 245215 in webkit
- Timestamp:
- May 12, 2019, 4:05:20 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/http/tests/resources/basic-auth.php (added)
-
LayoutTests/http/tests/ssl/curl (added)
-
LayoutTests/http/tests/ssl/curl/certificate-and-authentication-expected.txt (added)
-
LayoutTests/http/tests/ssl/curl/certificate-and-authentication.html (added)
-
LayoutTests/platform/wincairo-wk1/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/wincairo/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/network/curl/CurlRequest.h (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245212 r245215 1 2019-05-12 Takashi Komori <Takashi.Komori@sony.com> 2 3 [Curl] Suppress extra didReceiveAuthenticationChallenge call when accessing a server which checks basic auth. 4 https://bugs.webkit.org/show_bug.cgi?id=197650 5 6 Reviewed by Fujii Hironori. 7 8 * TestExpectations: 9 * http/tests/resources/basic-auth.php: Added. 10 * http/tests/ssl/curl/certificate-and-authentication-expected.txt: Added. 11 * http/tests/ssl/curl/certificate-and-authentication.html: Added. 12 * platform/wincairo-wk1/TestExpectations: 13 * platform/wincairo/TestExpectations: 14 1 15 2019-05-11 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/LayoutTests/TestExpectations
r245212 r245215 53 53 http/tests/gzip-content-encoding [ Skip ] 54 54 http/tests/cookies/same-site [ Skip ] 55 http/tests/ssl/curl [ Skip ] 55 56 system-preview [ Skip ] 56 57 editing/images [ Skip ] -
trunk/LayoutTests/platform/wincairo-wk1/TestExpectations
r244250 r245215 22 22 23 23 # Server trust evaluation only supported in WK2. 24 http/tests/ssl/curl/certificate-and-authentication.html [ Skip ] 24 25 http/tests/ssl/iframe-upgrade.https.html [ Skip ] 25 26 http/tests/ssl/mixedContent/insecure-websocket.html [ Failure ] -
trunk/LayoutTests/platform/wincairo/TestExpectations
r244908 r245215 949 949 http/tests/security/cookies/third-party-cookie-blocking-xslt.xml [ Pass ] 950 950 951 http/tests/ssl/curl/certificate-and-authentication.html [ Pass ] 951 952 http/tests/ssl/media-stream [ Skip ] 952 953 -
trunk/Source/WebCore/ChangeLog
r245212 r245215 1 2019-05-12 Takashi Komori <Takashi.Komori@sony.com> 2 3 [Curl] Suppress extra didReceiveAuthenticationChallenge call when accessing a server which checks basic auth. 4 https://bugs.webkit.org/show_bug.cgi?id=197650 5 6 Reviewed by Fujii Hironori. 7 8 When Curl port accesses a page which checks Basic Authentication credential and server trust challenge occurs, 9 Curl port calls extra didReceiveAuthenticationChallenge unnecessarily. 10 This is because Curl port discards information about allowed server trust challenge before in NetworkDataTaskCurl::restartWithCredential. 11 12 Test: http/tests/ssl/curl/certificate-and-authentication.html 13 14 * platform/network/curl/CurlRequest.h: 15 (WebCore::CurlRequest::isServerTrustEvaluationDisabled): 16 1 17 2019-05-11 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Source/WebCore/platform/network/curl/CurlRequest.h
r244684 r245215 75 75 WEBCORE_EXPORT void setAuthenticationScheme(ProtectionSpaceAuthenticationScheme); 76 76 WEBCORE_EXPORT void setUserPass(const String&, const String&); 77 bool isServerTrustEvaluationDisabled() { return m_shouldDisableServerTrustEvaluation; } 77 78 void disableServerTrustEvaluation() { m_shouldDisableServerTrustEvaluation = true; } 78 79 void setStartTime(const MonotonicTime& startTime) { m_requestStartTime = startTime; } -
trunk/Source/WebKit/ChangeLog
r245198 r245215 1 2019-05-12 Takashi Komori <Takashi.Komori@sony.com> 2 3 [Curl] Suppress extra didReceiveAuthenticationChallenge call when accessing a server which checks basic auth. 4 https://bugs.webkit.org/show_bug.cgi?id=197650 5 6 Reviewed by Fujii Hironori. 7 8 * NetworkProcess/curl/NetworkDataTaskCurl.cpp: 9 (WebKit::NetworkDataTaskCurl::restartWithCredential): 10 1 11 2019-05-10 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp
r243654 r245215 426 426 427 427 auto previousRequest = m_curlRequest->resourceRequest(); 428 auto shouldDisableServerTrustEvaluation = protectionSpace.authenticationScheme() == ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested || m_curlRequest->isServerTrustEvaluationDisabled(); 428 429 m_curlRequest->cancel(); 429 430 … … 431 432 m_curlRequest->setAuthenticationScheme(protectionSpace.authenticationScheme()); 432 433 m_curlRequest->setUserPass(credential.user(), credential.password()); 433 if ( protectionSpace.authenticationScheme() == ProtectionSpaceAuthenticationSchemeServerTrustEvaluationRequested)434 if (shouldDisableServerTrustEvaluation) 434 435 m_curlRequest->disableServerTrustEvaluation(); 435 436 m_curlRequest->setStartTime(m_startTime);
Note:
See TracChangeset
for help on using the changeset viewer.