Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Issue 2225483002: [ios] Removed CertVerifierBlockAdapter. (Closed)

Created:
4 years, 4 months ago by Eugene But (OOO till 7-30)
Modified:
4 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Removed CertVerifierBlockAdapter. cert_verify_proc_ios.cc uses SecTrustRef to get the reason of cert verification failure, so there is no reason to use CertVerifier for web view cert verification. Removing CertVerifier usage should have positive impact on battery life (because second versification will not be performed) and simplify the code (especially threading part). BUG=603634 TEST=interstitials show correct reason of failure Committed: https://crrev.com/bbaae2f91795c442ef62bdfe42be1d5ea75f7cc2 Cr-Commit-Position: refs/heads/master@{#412096}

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 15

Patch Set 3 : Addressed review comments #

Patch Set 4 : static CertVerifyProcIOS::GetCertFailureStatusFromTrust #

Patch Set 5 : Fixed compilation #

Patch Set 6 : Updated includes #

Total comments: 28

Patch Set 7 : Resolved review comments #

Patch Set 8 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -822 lines) Patch
M ios/web/BUILD.gn View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M ios/web/ios_web.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M ios/web/ios_web_unittests.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
D ios/web/net/cert_verifier_block_adapter.h View 1 chunk +0 lines, -88 lines 0 comments Download
D ios/web/net/cert_verifier_block_adapter.cc View 1 chunk +0 lines, -113 lines 0 comments Download
D ios/web/net/cert_verifier_block_adapter_unittest.cc View 1 chunk +0 lines, -174 lines 0 comments Download
M ios/web/net/crw_cert_verification_controller.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ios/web/net/crw_cert_verification_controller.mm View 1 2 3 4 5 6 7 7 chunks +74 lines, -339 lines 0 comments Download
M ios/web/net/crw_cert_verification_controller_unittest.mm View 1 2 3 4 5 6 7 9 chunks +14 lines, -87 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M net/cert/cert_verify_proc_ios.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M net/cert/cert_verify_proc_ios.cc View 1 2 3 4 5 6 7 8 chunks +17 lines, -10 lines 0 comments Download
A net/cert/cert_verify_proc_ios_unittest.cc View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (26 generated)
Eugene But (OOO till 7-30)
4 years, 4 months ago (2016-08-05 20:09:20 UTC) #3
Ryan Sleevi
https://codereview.chromium.org/2225483002/diff/20001/ios/web/net/crw_cert_verification_controller_unittest.mm File ios/web/net/crw_cert_verification_controller_unittest.mm (right): https://codereview.chromium.org/2225483002/diff/20001/ios/web/net/crw_cert_verification_controller_unittest.mm#newcode107 ios/web/net/crw_cert_verification_controller_unittest.mm:107: verify_result.verified_cert = cert_; Unused? https://codereview.chromium.org/2225483002/diff/20001/ios/web/net/crw_cert_verification_controller_unittest.mm#newcode119 ios/web/net/crw_cert_verification_controller_unittest.mm:119: result.verified_cert = cert_; ...
4 years, 4 months ago (2016-08-08 17:47:37 UTC) #4
Eugene But (OOO till 7-30)
Thanks! Let me know if you want to remove sec_trust_util.* files. https://codereview.chromium.org/2225483002/diff/20001/ios/web/net/crw_cert_verification_controller_unittest.mm File ios/web/net/crw_cert_verification_controller_unittest.mm (right): ...
4 years, 4 months ago (2016-08-08 20:22:23 UTC) #10
Ryan Sleevi
https://codereview.chromium.org/2225483002/diff/20001/net/cert/sec_trust_util.h File net/cert/sec_trust_util.h (right): https://codereview.chromium.org/2225483002/diff/20001/net/cert/sec_trust_util.h#newcode6 net/cert/sec_trust_util.h:6: #define NET_CERT_SEC_TRUST_UTIL_H_ On 2016/08/08 20:22:23, Eugene But wrote: > ...
4 years, 4 months ago (2016-08-08 20:44:18 UTC) #11
Eugene But (OOO till 7-30)
On 2016/08/08 20:44:18, Ryan Sleevi (slow) wrote: > https://codereview.chromium.org/2225483002/diff/20001/net/cert/sec_trust_util.h > File net/cert/sec_trust_util.h (right): > > ...
4 years, 4 months ago (2016-08-08 21:02:31 UTC) #12
Ryan Sleevi
On 2016/08/08 21:02:31, Eugene But wrote: > Ok, so looks like you generally not sure ...
4 years, 4 months ago (2016-08-08 21:10:01 UTC) #13
Eugene But (OOO till 7-30)
My design decision was simple: stop using CertVerifier for WKWebView cert verification, because it is ...
4 years, 4 months ago (2016-08-08 22:38:30 UTC) #14
Ryan Sleevi
I'm afraid we're completely talking past eachother at this point, which is probably as frustrating ...
4 years, 4 months ago (2016-08-08 22:46:18 UTC) #15
Eugene But (OOO till 7-30)
I moved GetCertFailureStatusFromTrust back to CertVerifyProcIOS in the latest patch and made it a static ...
4 years, 4 months ago (2016-08-08 23:05:01 UTC) #16
Eugene But (OOO till 7-30)
Ryan?
4 years, 4 months ago (2016-08-11 23:33:19 UTC) #27
Ryan Sleevi
As the description indicated, a bit slow, and this is a fairly tricky CL that ...
4 years, 4 months ago (2016-08-11 23:36:22 UTC) #28
Eugene But (OOO till 7-30)
On 2016/08/11 23:36:22, Ryan Sleevi (slow) wrote: > As the description indicated, a bit slow, ...
4 years, 4 months ago (2016-08-11 23:58:21 UTC) #29
Ryan Sleevi
https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm File ios/web/net/crw_cert_verification_controller.mm (right): https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm#newcode47 ios/web/net/crw_cert_verification_controller.mm:47: // not be for a valid cert. Must be ...
4 years, 4 months ago (2016-08-12 00:16:23 UTC) #30
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm File ios/web/net/crw_cert_verification_controller.mm (right): https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm#newcode47 ios/web/net/crw_cert_verification_controller.mm:47: // not be for a valid cert. Must be ...
4 years, 4 months ago (2016-08-12 16:16:40 UTC) #33
Ryan Sleevi
https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm File ios/web/net/crw_cert_verification_controller.mm (right): https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm#newcode86 ios/web/net/crw_cert_verification_controller.mm:86: web::SECURITY_STYLE_AUTHENTICATED) { On 2016/08/12 16:16:39, Eugene But wrote: > ...
4 years, 4 months ago (2016-08-12 16:28:33 UTC) #34
Ryan Sleevi
Oh, and I forgot the LGTM, sorry, meant to give that sooner (that is, contingent ...
4 years, 4 months ago (2016-08-12 17:27:24 UTC) #37
Eugene But (OOO till 7-30)
Thanks! I really appreciate your very detailed review. https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm File ios/web/net/crw_cert_verification_controller.mm (right): https://codereview.chromium.org/2225483002/diff/100001/ios/web/net/crw_cert_verification_controller.mm#newcode86 ios/web/net/crw_cert_verification_controller.mm:86: web::SECURITY_STYLE_AUTHENTICATED) ...
4 years, 4 months ago (2016-08-12 22:33:03 UTC) #38
Eugene But (OOO till 7-30)
+isherman@ for metrics
4 years, 4 months ago (2016-08-12 22:33:33 UTC) #40
Ilya Sherman
histograms.xml lgtm, thanks
4 years, 4 months ago (2016-08-15 21:38:18 UTC) #41
Eugene But (OOO till 7-30)
Thanks you, Ilya.
4 years, 4 months ago (2016-08-15 21:50:16 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2225483002/140001
4 years, 4 months ago (2016-08-15 21:51:00 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-15 23:35:12 UTC) #47
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 23:37:49 UTC) #49
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/bbaae2f91795c442ef62bdfe42be1d5ea75f7cc2
Cr-Commit-Position: refs/heads/master@{#412096}

Powered by Google App Engine
This is Rietveld 408576698