⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 244255 in webkit


Ignore:
Timestamp:
Apr 15, 2019, 12:15:29 AM (7 years ago)
Author:
bshafiei@apple.com
Message:

Cherry-pick r243487. rdar://problem/49788895

Do not terminate the NetworkProcess if a third party application sends a NSCredential with a SecIdentityRef
https://bugs.webkit.org/show_bug.cgi?id=196213

Patch by Alex Christensen <achristensen@webkit.org> on 2019-03-25
Reviewed by Geoff Garen.

Source/WebKit:

A release assertion added in r230225 was reachable. I reached it in a unit test that responds to a challenge
with a SecIdentityRef wrapped in an NSCredential.

  • Shared/cf/ArgumentCodersCF.cpp: (IPC::decode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243487 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/Source/WebKit/ChangeLog

    r244194 r244255  
     12019-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
    1432019-04-11  Kocsen Chung  <kocsen_chung@apple.com>
    244
  • branches/safari-607-branch/Source/WebKit/Shared/cf/ArgumentCodersCF.cpp

    r244194 r244255  
    706706bool decode(Decoder& decoder, RetainPtr<SecIdentityRef>& result)
    707707{
    708 #if PLATFORM(COCOA)
    709     RELEASE_ASSERT(hasProcessPrivilege(ProcessPrivilege::CanAccessCredentials));
    710 #endif
    711 
    712708    RetainPtr<SecCertificateRef> certificate;
    713709    if (!decode(decoder, certificate))
     
    724720    if (!decode(decoder, keyData))
    725721        return false;
     722
     723#if PLATFORM(COCOA)
     724    if (!hasProcessPrivilege(ProcessPrivilege::CanAccessCredentials))
     725        return true;
     726#endif
    726727
    727728    SecKeyRef key = nullptr;
Note: See TracChangeset for help on using the changeset viewer.