LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * Copyright (C) 2015-2018 Apple Inc. All rights reserved. | 2 * Copyright (C) 2015-2018 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 @property (nullable, copy) NSSet *_suppressedAutoAddedHTTPHeaders; | 59 @property (nullable, copy) NSSet *_suppressedAutoAddedHTTPHeaders; |
60 @end | 60 @end |
61 #endif | 61 #endif |
62 | 62 |
63 static NSURLSessionResponseDisposition toNSURLSessionResponseDisposition(WebCore
::PolicyAction disposition) | 63 static NSURLSessionResponseDisposition toNSURLSessionResponseDisposition(WebCore
::PolicyAction disposition) |
64 { | 64 { |
65 switch (disposition) { | 65 switch (disposition) { |
66 case WebCore::PolicyAction::Suspend: | 66 case WebCore::PolicyAction::Suspend: |
67 LOG_ERROR("PolicyAction::Suspend encountered - Treating as PolicyAction:
:Ignore for now"); | 67 LOG_ERROR("PolicyAction::Suspend encountered - Treating as PolicyAction:
:Ignore for now"); |
68 FALLTHROUGH; | 68 FALLTHROUGH; |
| 69 case WebCore::PolicyAction::IgnoreAndLockBackForwardList: |
| 70 ASSERT_NOT_REACHED(); |
69 case WebCore::PolicyAction::Ignore: | 71 case WebCore::PolicyAction::Ignore: |
70 return NSURLSessionResponseCancel; | 72 return NSURLSessionResponseCancel; |
71 case WebCore::PolicyAction::Use: | 73 case WebCore::PolicyAction::Use: |
72 return NSURLSessionResponseAllow; | 74 return NSURLSessionResponseAllow; |
73 case WebCore::PolicyAction::Download: | 75 case WebCore::PolicyAction::Download: |
74 return NSURLSessionResponseBecomeDownload; | 76 return NSURLSessionResponseBecomeDownload; |
75 } | 77 } |
76 } | 78 } |
77 | 79 |
78 static NSURLSessionAuthChallengeDisposition toNSURLSessionAuthChallengeDispositi
on(WebKit::AuthenticationChallengeDisposition disposition) | 80 static NSURLSessionAuthChallengeDisposition toNSURLSessionAuthChallengeDispositi
on(WebKit::AuthenticationChallengeDisposition disposition) |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 | 824 |
823 SecTrustRef trustRef = nullptr; | 825 SecTrustRef trustRef = nullptr; |
824 if (SecTrustCreateWithCertificates((CFArrayRef)certificates, policy.get(), &
trustRef) != noErr) | 826 if (SecTrustCreateWithCertificates((CFArrayRef)certificates, policy.get(), &
trustRef) != noErr) |
825 return false; | 827 return false; |
826 RetainPtr<SecTrustRef> trust = adoptCF(trustRef); | 828 RetainPtr<SecTrustRef> trust = adoptCF(trustRef); |
827 | 829 |
828 return certificatesMatch(trust.get(), challenge.nsURLAuthenticationChallenge
().protectionSpace.serverTrust); | 830 return certificatesMatch(trust.get(), challenge.nsURLAuthenticationChallenge
().protectionSpace.serverTrust); |
829 } | 831 } |
830 | 832 |
831 } | 833 } |
LEFT | RIGHT |