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

Unified Diff: components/security_state/content/content_utils.cc

Issue 2761333002: Add a DevTools warning for a missing subjectAltName (Closed)
Patch Set: unused variable fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/security_state/content/content_utils.cc
diff --git a/components/security_state/content/content_utils.cc b/components/security_state/content/content_utils.cc
index ae007c335a78b8fc897250b621a3f22da0937e43..4e60465d8ca60aba66a9793bbf634a60444164ac 100644
--- a/components/security_state/content/content_utils.cc
+++ b/components/security_state/content/content_utils.cc
@@ -226,6 +226,14 @@ blink::WebSecurityStyle GetSecurityStyle(
!!security_info.certificate));
}
+ if (security_info.cert_missing_subject_alt_name) {
+ security_style_explanations->unauthenticated_explanations.push_back(
estark 2017/03/21 23:33:03 I think this probably should be |broken_explanatio
Ryan Sleevi 2017/03/22 00:10:47 I left it as broken for all cases, does that work?
estark 2017/03/22 00:16:21 Yeah, that's fine by me, thanks.
+ content::SecurityStyleExplanation(
+ l10n_util::GetStringUTF8(IDS_SUBJECT_ALT_NAME_MISSING),
+ l10n_util::GetStringUTF8(IDS_SUBJECT_ALT_NAME_MISSING_DESCRIPTION),
+ !!security_info.certificate));
+ }
+
// Record the presence of mixed content (HTTP subresources on an HTTPS
// page).
security_style_explanations->ran_mixed_content =

Powered by Google App Engine
This is Rietveld 408576698