Changeset 244255 in webkit
- Timestamp:
- Apr 15, 2019, 12:15:29 AM (7 years ago)
- Location:
- branches/safari-607-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Shared/cf/ArgumentCodersCF.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-607-branch/Source/WebKit/ChangeLog
r244194 r244255 1 2019-04-14 Babak Shafiei <bshafiei@apple.com> 2 3 Cherry-pick r243487. rdar://problem/49788895 4 5 Do not terminate the NetworkProcess if a third party application sends a NSCredential with a SecIdentityRef 6 https://bugs.webkit.org/show_bug.cgi?id=196213 7 8 Patch by Alex Christensen <achristensen@webkit.org> on 2019-03-25 9 Reviewed by Geoff Garen. 10 11 Source/WebKit: 12 13 A release assertion added in r230225 was reachable. I reached it in a unit test that responds to a challenge 14 with a SecIdentityRef wrapped in an NSCredential. 15 16 * Shared/cf/ArgumentCodersCF.cpp: 17 (IPC::decode): 18 19 Tools: 20 21 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: 22 * TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm: Added. 23 (credentialWithIdentityAndKeychainPath): 24 (-[ChallengeDelegate webView:didFinishNavigation:]): 25 (-[ChallengeDelegate webView:didReceiveAuthenticationChallenge:completionHandler:]): 26 (TestWebKitAPI::TEST): 27 28 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243487 268f45cc-cd09-0410-ab3c-d52691b4dbfc 29 30 2019-03-25 Alex Christensen <achristensen@webkit.org> 31 32 Do not terminate the NetworkProcess if a third party application sends a NSCredential with a SecIdentityRef 33 https://bugs.webkit.org/show_bug.cgi?id=196213 34 35 Reviewed by Geoff Garen. 36 37 A release assertion added in r230225 was reachable. I reached it in a unit test that responds to a challenge 38 with a SecIdentityRef wrapped in an NSCredential. 39 40 * Shared/cf/ArgumentCodersCF.cpp: 41 (IPC::decode): 42 1 43 2019-04-11 Kocsen Chung <kocsen_chung@apple.com> 2 44 -
branches/safari-607-branch/Source/WebKit/Shared/cf/ArgumentCodersCF.cpp
r244194 r244255 706 706 bool decode(Decoder& decoder, RetainPtr<SecIdentityRef>& result) 707 707 { 708 #if PLATFORM(COCOA)709 RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanAccessCredentials));710 #endif711 712 708 RetainPtr<SecCertificateRef> certificate; 713 709 if (!decode(decoder, certificate)) … … 724 720 if (!decode(decoder, keyData)) 725 721 return false; 722 723 #if PLATFORM(COCOA) 724 if (!hasProcessPrivilege(ProcessPrivilege::CanAccessCredentials)) 725 return true; 726 #endif 726 727 727 728 SecKeyRef key = nullptr;
Note:
See TracChangeset
for help on using the changeset viewer.