Commit 5553b9f8 authored by elawrence's avatar elawrence Committed by Commit bot

DevTools: Convert Security Panel to Sentence case

Replace use of Title Case in the Developer Tools' Security Panel to use sentence case, matching Chrome text standards.

BUG=721176

Review-Url: https://codereview.chromium.org/2881513003
Cr-Commit-Position: refs/heads/master@{#473435}
parent 507bbc4d
...@@ -306,8 +306,9 @@ blink::WebSecurityStyle GetSecurityStyle( ...@@ -306,8 +306,9 @@ blink::WebSecurityStyle GetSecurityStyle(
if (security_info.pkp_bypassed) { if (security_info.pkp_bypassed) {
security_style_explanations->info_explanations.push_back( security_style_explanations->info_explanations.push_back(
content::SecurityStyleExplanation( content::SecurityStyleExplanation(
"Public-Key Pinning Bypassed", l10n_util::GetStringUTF8(IDS_PRIVATE_KEY_PINNING_BYPASSED),
"Public-key pinning was bypassed by a local root certificate.")); l10n_util::GetStringUTF8(
IDS_PRIVATE_KEY_PINNING_BYPASSED_DESCRIPTION)));
} }
return security_style; return security_style;
......
...@@ -181,7 +181,7 @@ TEST(SecurityStateContentUtilsTest, ConnectionExplanation) { ...@@ -181,7 +181,7 @@ TEST(SecurityStateContentUtilsTest, ConnectionExplanation) {
GetSecurityStyle(security_info, &explanations); GetSecurityStyle(security_info, &explanations);
content::SecurityStyleExplanation explanation; content::SecurityStyleExplanation explanation;
ASSERT_TRUE(FindSecurityStyleExplanation( ASSERT_TRUE(FindSecurityStyleExplanation(
explanations.secure_explanations, "Secure Connection", &explanation)); explanations.secure_explanations, "Secure connection", &explanation));
EXPECT_EQ( EXPECT_EQ(
"The connection to this site is encrypted and authenticated using a " "The connection to this site is encrypted and authenticated using a "
"strong protocol (TLS 1.2), a strong key exchange (ECDHE_RSA with " "strong protocol (TLS 1.2), a strong key exchange (ECDHE_RSA with "
...@@ -197,7 +197,7 @@ TEST(SecurityStateContentUtilsTest, ConnectionExplanation) { ...@@ -197,7 +197,7 @@ TEST(SecurityStateContentUtilsTest, ConnectionExplanation) {
GetSecurityStyle(security_info, &explanations); GetSecurityStyle(security_info, &explanations);
content::SecurityStyleExplanation explanation; content::SecurityStyleExplanation explanation;
ASSERT_TRUE(FindSecurityStyleExplanation( ASSERT_TRUE(FindSecurityStyleExplanation(
explanations.secure_explanations, "Secure Connection", &explanation)); explanations.secure_explanations, "Secure connection", &explanation));
EXPECT_EQ( EXPECT_EQ(
"The connection to this site is encrypted and authenticated using a " "The connection to this site is encrypted and authenticated using a "
"strong protocol (TLS 1.2), a strong key exchange (ECDHE_RSA), and a " "strong protocol (TLS 1.2), a strong key exchange (ECDHE_RSA), and a "
...@@ -216,7 +216,7 @@ TEST(SecurityStateContentUtilsTest, ConnectionExplanation) { ...@@ -216,7 +216,7 @@ TEST(SecurityStateContentUtilsTest, ConnectionExplanation) {
GetSecurityStyle(security_info, &explanations); GetSecurityStyle(security_info, &explanations);
content::SecurityStyleExplanation explanation; content::SecurityStyleExplanation explanation;
ASSERT_TRUE(FindSecurityStyleExplanation( ASSERT_TRUE(FindSecurityStyleExplanation(
explanations.secure_explanations, "Secure Connection", &explanation)); explanations.secure_explanations, "Secure connection", &explanation));
EXPECT_EQ( EXPECT_EQ(
"The connection to this site is encrypted and authenticated using a " "The connection to this site is encrypted and authenticated using a "
"strong protocol (TLS 1.3), a strong key exchange (X25519), and a " "strong protocol (TLS 1.3), a strong key exchange (X25519), and a "
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<grit-part> <grit-part>
<!-- Strings describing Chrome security policy for DevTools security panel --> <!-- Strings describing Chrome security policy for DevTools security panel -->
<message name="IDS_PRIVATE_USER_DATA_INPUT" desc="Summary phrase for a security problem where the site collects private user data on an insecure page." translateable="false"> <message name="IDS_PRIVATE_USER_DATA_INPUT" desc="Summary phrase for a security problem where the site collects private user data on an insecure page." translateable="false">
Private User Data Input Private user data input
</message> </message>
<message name="IDS_PRIVATE_USER_DATA_INPUT_DESCRIPTION" desc="Description of a security problem where the site collects private user data on an insecure page, which results in an omnibox warning." translateable="false"> <message name="IDS_PRIVATE_USER_DATA_INPUT_DESCRIPTION" desc="Description of a security problem where the site collects private user data on an insecure page, which results in an omnibox warning." translateable="false">
This page includes a password or credit card input over HTTP. A warning has been added to the URL bar. This page includes a password or credit card input over HTTP. A warning has been added to the URL bar.
...@@ -11,37 +11,43 @@ ...@@ -11,37 +11,43 @@
This page is dangerous (flagged by Google Safe Browsing). This page is dangerous (flagged by Google Safe Browsing).
</message> </message>
<message name="IDS_SHA1" desc="Summary phrase for a security problem where the site's certificate chain contains a SHA1 signature." translateable="false"> <message name="IDS_SHA1" desc="Summary phrase for a security problem where the site's certificate chain contains a SHA1 signature." translateable="false">
SHA-1 Certificate SHA-1 certificate
</message> </message>
<message name="IDS_SHA1_DESCRIPTION" desc="Description of a security problem where the site's certificate chain contains a SHA1 signature." translateable="false"> <message name="IDS_SHA1_DESCRIPTION" desc="Description of a security problem where the site's certificate chain contains a SHA1 signature." translateable="false">
The certificate chain for this site contains a certificate signed using SHA-1. The certificate chain for this site contains a certificate signed using SHA-1.
</message> </message>
<message name="IDS_SUBJECT_ALT_NAME_MISSING" desc="Summary phrase for a security problem where the site's certificate is missing a subjectAltName extension." translateable="false"> <message name="IDS_SUBJECT_ALT_NAME_MISSING" desc="Summary phrase for a security problem where the site's certificate is missing a subjectAltName extension." translateable="false">
Subject Alternative Name Missing Subject Alternative Name missing
</message> </message>
<message name="IDS_SUBJECT_ALT_NAME_MISSING_DESCRIPTION" desc="Description of a security problem where the site's certificate is missing a subjectAltName extension." translateable="false"> <message name="IDS_SUBJECT_ALT_NAME_MISSING_DESCRIPTION" desc="Description of a security problem where the site's certificate is missing a subjectAltName extension." translateable="false">
The certificate for this site does not contain a Subject Alternative Name extension containing a domain name or IP address. The certificate for this site does not contain a Subject Alternative Name extension containing a domain name or IP address.
</message> </message>
<message name="IDS_CERTIFICATE_CHAIN_ERROR" desc="Summary phrase for a security problem with the site's certificate." translateable="false"> <message name="IDS_CERTIFICATE_CHAIN_ERROR" desc="Summary phrase for a security problem with the site's certificate." translateable="false">
Certificate Error Certificate error
</message> </message>
<message name="IDS_CERTIFICATE_CHAIN_ERROR_DESCRIPTION_FORMAT" desc="Description of a security problem with the site's certificate." translateable="false"> <message name="IDS_CERTIFICATE_CHAIN_ERROR_DESCRIPTION_FORMAT" desc="Description of a security problem with the site's certificate." translateable="false">
There are issues with the site's certificate chain (<ph name="CERT_ERROR_DESCRIPTION">$1<ex>net::ERR_CERT_AUTHORITY_INVALID</ex></ph>). There are issues with the site's certificate chain (<ph name="CERT_ERROR_DESCRIPTION">$1<ex>net::ERR_CERT_AUTHORITY_INVALID</ex></ph>).
</message> </message>
<message name="IDS_VALID_SERVER_CERTIFICATE" desc="Summary phrase for a site that has a valid server certificate." translateable="false"> <message name="IDS_VALID_SERVER_CERTIFICATE" desc="Summary phrase for a site that has a valid server certificate." translateable="false">
Valid Certificate Valid certificate
</message> </message>
<message name="IDS_VALID_SERVER_CERTIFICATE_DESCRIPTION" desc="Description of a site that has a valid server certificate." translateable="false"> <message name="IDS_VALID_SERVER_CERTIFICATE_DESCRIPTION" desc="Description of a site that has a valid server certificate." translateable="false">
The connection to this site is using a valid, trusted server certificate. The connection to this site is using a valid, trusted server certificate.
</message> </message>
<message name="IDS_STRONG_SSL_SUMMARY" desc="Summary phrase for a site that uses a modern, secure TLS protocol and cipher." translateable="false"> <message name="IDS_STRONG_SSL_SUMMARY" desc="Summary phrase for a site that uses a modern, secure TLS protocol and cipher." translateable="false">
Secure Connection Secure connection
</message>
<message name="IDS_PRIVATE_KEY_PINNING_BYPASSED" desc="Summary phrase for a security state where Private Key Pinning is ignored because the certificate chains to a locally-trusted root." translateable="false">
Public-Key-Pinning bypassed
</message>
<message name="IDS_PRIVATE_KEY_PINNING_BYPASSED_DESCRIPTION" desc="Description of a security state where Private Key Pinning is ignored because the certificate chains to a locally-trusted root." translateable="false">
Public-Key-Pinning was bypassed by a local root certificate.
</message> </message>
<message name="IDS_STRONG_SSL_DESCRIPTION" desc="Description of a site that uses a modern, secure TLS protocol and cipher." translateable="false"> <message name="IDS_STRONG_SSL_DESCRIPTION" desc="Description of a site that uses a modern, secure TLS protocol and cipher." translateable="false">
The connection to this site is encrypted and authenticated using a strong protocol (<ph name="PROTOCOL_VERSION">$1<ex>TLS 1.2</ex></ph>), a strong key exchange (<ph name="KEY_EXCHANGE">$2<ex>ECDHE_RSA</ex></ph>), and a strong cipher (<ph name="CIPHER_SUTE">$3<ex>AES_128_GCM</ex></ph>). The connection to this site is encrypted and authenticated using a strong protocol (<ph name="PROTOCOL_VERSION">$1<ex>TLS 1.2</ex></ph>), a strong key exchange (<ph name="KEY_EXCHANGE">$2<ex>ECDHE_RSA</ex></ph>), and a strong cipher (<ph name="CIPHER_SUTE">$3<ex>AES_128_GCM</ex></ph>).
</message> </message>
<message name="IDS_OBSOLETE_SSL_SUMMARY" desc="Summary phrase for a site that uses an outdated SSL settings (protocol, key exchange, or cipher)." translateable="false"> <message name="IDS_OBSOLETE_SSL_SUMMARY" desc="Summary phrase for a site that uses an outdated SSL settings (protocol, key exchange, or cipher)." translateable="false">
Obsolete Connection Settings Obsolete connection settings
</message> </message>
<message name="IDS_OBSOLETE_SSL_DESCRIPTION" desc="Description of a site that uses an outdated TLS protocol or cipher." translateable="false"> <message name="IDS_OBSOLETE_SSL_DESCRIPTION" desc="Description of a site that uses an outdated TLS protocol or cipher." translateable="false">
The connection to this site uses <ph name="A_PROTOCOL">$1<ex>an obsolete protocol</ex></ph> (<ph name="PROTOCOL">$2<ex>TLS 1.0</ex></ph>), <ph name="A_KEY_EXCHANGE">$3<ex>an obsolete key exchange</ex></ph> (<ph name="KEY_EXCHANGE">$4<ex>ECDHE_RSA</ex></ph>), and <ph name="A_CIPHER">$5<ex>an obsolete cipher</ex></ph> (<ph name="CIPHER">$6<ex>AES_256_CBC with HMAC-SHA1</ex></ph>). The connection to this site uses <ph name="A_PROTOCOL">$1<ex>an obsolete protocol</ex></ph> (<ph name="PROTOCOL">$2<ex>TLS 1.0</ex></ph>), <ph name="A_KEY_EXCHANGE">$3<ex>an obsolete key exchange</ex></ph> (<ph name="KEY_EXCHANGE">$4<ex>ECDHE_RSA</ex></ph>), and <ph name="A_CIPHER">$5<ex>an obsolete cipher</ex></ph> (<ph name="CIPHER">$6<ex>AES_256_CBC with HMAC-SHA1</ex></ph>).
......
Tests that blank origins aren't shown in the security panel origins list. Tests that blank origins aren't shown in the security panel origins list.
Group: Main Origin Group: Main origin
Group: Unknown / Canceled Group: Unknown / canceled
<SPAN class=title > <SPAN class=title >
https://foo.test https://foo.test
</SPAN> </SPAN>
......
Tests that origins with failed requests are shown correctly in the security panel origins list. Tests that origins with failed requests are shown correctly in the security panel origins list.
Group: Main Origin Group: Main origin
Group: Secure Origins Group: Secure origins
<SPAN class=title > <SPAN class=title >
https://foo.test https://foo.test
</SPAN> </SPAN>
Group: Unknown / Canceled Group: Unknown / canceled
<SPAN class=title > <SPAN class=title >
https://does-not-resolve.test https://does-not-resolve.test
</SPAN> </SPAN>
......
...@@ -28,7 +28,7 @@ Overview ...@@ -28,7 +28,7 @@ Overview
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Main Origin Main origin
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded role=group > <OL class=children expanded role=group >
...@@ -46,7 +46,7 @@ Reload to view details ...@@ -46,7 +46,7 @@ Reload to view details
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Non-Secure Origins Non-secure origins
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded hidden role=group > <OL class=children expanded hidden role=group >
...@@ -55,7 +55,7 @@ Non-Secure Origins ...@@ -55,7 +55,7 @@ Non-Secure Origins
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Secure Origins Secure origins
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded role=group > <OL class=children expanded role=group >
...@@ -90,7 +90,7 @@ https://bar.test ...@@ -90,7 +90,7 @@ https://bar.test
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Unknown / Canceled Unknown / canceled
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded hidden role=group > <OL class=children expanded hidden role=group >
...@@ -131,7 +131,7 @@ Overview ...@@ -131,7 +131,7 @@ Overview
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Main Origin Main origin
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded hidden role=group > <OL class=children expanded hidden role=group >
...@@ -149,7 +149,7 @@ Reload to view details ...@@ -149,7 +149,7 @@ Reload to view details
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Non-Secure Origins Non-secure origins
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded hidden role=group > <OL class=children expanded hidden role=group >
...@@ -158,7 +158,7 @@ Non-Secure Origins ...@@ -158,7 +158,7 @@ Non-Secure Origins
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Secure Origins Secure origins
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded hidden role=group > <OL class=children expanded hidden role=group >
...@@ -193,7 +193,7 @@ https://bar.test ...@@ -193,7 +193,7 @@ https://bar.test
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Unknown / Canceled Unknown / canceled
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded hidden role=group > <OL class=children expanded hidden role=group >
...@@ -234,7 +234,7 @@ Overview ...@@ -234,7 +234,7 @@ Overview
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Main Origin Main origin
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded role=group > <OL class=children expanded role=group >
...@@ -252,7 +252,7 @@ Reload to view details ...@@ -252,7 +252,7 @@ Reload to view details
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Non-Secure Origins Non-secure origins
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded role=group > <OL class=children expanded role=group >
...@@ -261,7 +261,7 @@ Non-Secure Origins ...@@ -261,7 +261,7 @@ Non-Secure Origins
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Secure Origins Secure origins
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded role=group > <OL class=children expanded role=group >
...@@ -296,7 +296,7 @@ https://bar.test ...@@ -296,7 +296,7 @@ https://bar.test
<DIV class=selection fill > <DIV class=selection fill >
</DIV> </DIV>
<SPAN class=tree-element-title > <SPAN class=tree-element-title >
Unknown / Canceled Unknown / canceled
</SPAN> </SPAN>
</LI> </LI>
<OL class=children expanded role=group > <OL class=children expanded role=group >
......
...@@ -2,11 +2,11 @@ Tests that the Main Origin is assigned even if there is no matching Request. ...@@ -2,11 +2,11 @@ Tests that the Main Origin is assigned even if there is no matching Request.
Page origin: http://127.0.0.1:8000 Page origin: http://127.0.0.1:8000
Detected main origin: http://127.0.0.1:8000 Detected main origin: http://127.0.0.1:8000
Group: Main Origin Group: Main origin
<SPAN class=title > <SPAN class=title >
http://127.0.0.1:8000 http://127.0.0.1:8000
</SPAN> </SPAN>
Group: Unknown / Canceled Group: Unknown / canceled
<SPAN class=title > <SPAN class=title >
https://foo.test https://foo.test
</SPAN> </SPAN>
......
...@@ -5,7 +5,7 @@ Tests that the active and pasive mixed content explanations prompt the user to r ...@@ -5,7 +5,7 @@ Tests that the active and pasive mixed content explanations prompt the user to r
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Active Mixed Content Active mixed content
</DIV> </DIV>
<DIV > <DIV >
You have recently allowed non-secure content (such as scripts or iframes) to run on this site. You have recently allowed non-secure content (such as scripts or iframes) to run on this site.
...@@ -20,7 +20,7 @@ Reload the page to record requests for HTTP resources. ...@@ -20,7 +20,7 @@ Reload the page to record requests for HTTP resources.
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Mixed Content Mixed content
</DIV> </DIV>
<DIV > <DIV >
The site includes HTTP resources. The site includes HTTP resources.
...@@ -35,7 +35,7 @@ Reload the page to record requests for HTTP resources. ...@@ -35,7 +35,7 @@ Reload the page to record requests for HTTP resources.
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Active Mixed Content Active mixed content
</DIV> </DIV>
<DIV > <DIV >
You have recently allowed non-secure content (such as scripts or iframes) to run on this site. You have recently allowed non-secure content (such as scripts or iframes) to run on this site.
...@@ -50,7 +50,7 @@ View 1 request in Network Panel ...@@ -50,7 +50,7 @@ View 1 request in Network Panel
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Mixed Content Mixed content
</DIV> </DIV>
<DIV > <DIV >
The site includes HTTP resources. The site includes HTTP resources.
......
...@@ -5,7 +5,7 @@ Tests addition of explanation when there was both mixed content and subresources ...@@ -5,7 +5,7 @@ Tests addition of explanation when there was both mixed content and subresources
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Active Mixed Content Active mixed content
</DIV> </DIV>
<DIV > <DIV >
You have recently allowed non-secure content (such as scripts or iframes) to run on this site. You have recently allowed non-secure content (such as scripts or iframes) to run on this site.
...@@ -20,7 +20,7 @@ Reload the page to record requests for HTTP resources. ...@@ -20,7 +20,7 @@ Reload the page to record requests for HTTP resources.
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Mixed Content Mixed content
</DIV> </DIV>
<DIV > <DIV >
The site includes HTTP resources. The site includes HTTP resources.
......
...@@ -5,7 +5,7 @@ Tests that the mixed content explanation prompts the user to refresh when there ...@@ -5,7 +5,7 @@ Tests that the mixed content explanation prompts the user to refresh when there
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Mixed Content Mixed content
</DIV> </DIV>
<DIV > <DIV >
The site includes HTTP resources. The site includes HTTP resources.
...@@ -20,7 +20,7 @@ Reload the page to record requests for HTTP resources. ...@@ -20,7 +20,7 @@ Reload the page to record requests for HTTP resources.
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Mixed Content Mixed content
</DIV> </DIV>
<DIV > <DIV >
The site includes HTTP resources. The site includes HTTP resources.
......
...@@ -7,7 +7,7 @@ Security Explanations (Mixed Form Only) -------------- ...@@ -7,7 +7,7 @@ Security Explanations (Mixed Form Only) --------------
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Non-secure Form Non-secure form
</DIV> </DIV>
<DIV > <DIV >
The page includes a form with a non-secure "action" attribute. The page includes a form with a non-secure "action" attribute.
...@@ -19,7 +19,7 @@ The page includes a form with a non-secure "action" attribute. ...@@ -19,7 +19,7 @@ The page includes a form with a non-secure "action" attribute.
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Secure Resources Secure resources
</DIV> </DIV>
<DIV > <DIV >
All resources on this page are served securely. All resources on this page are served securely.
...@@ -33,7 +33,7 @@ Security Explanations (Mixed Form + Mixed Passive) -------------- ...@@ -33,7 +33,7 @@ Security Explanations (Mixed Form + Mixed Passive) --------------
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Non-secure Form Non-secure form
</DIV> </DIV>
<DIV > <DIV >
The page includes a form with a non-secure "action" attribute. The page includes a form with a non-secure "action" attribute.
...@@ -45,7 +45,7 @@ The page includes a form with a non-secure "action" attribute. ...@@ -45,7 +45,7 @@ The page includes a form with a non-secure "action" attribute.
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Mixed Content Mixed content
</DIV> </DIV>
<DIV > <DIV >
The site includes HTTP resources. The site includes HTTP resources.
......
...@@ -4,7 +4,7 @@ Before selecting origin view: ...@@ -4,7 +4,7 @@ Before selecting origin view:
<DIV class=widget vbox security-main-view > <DIV class=widget vbox security-main-view >
<DIV class=security-summary > <DIV class=security-summary >
<DIV class=security-summary-section-title > <DIV class=security-summary-section-title >
Security Overview Security overview
</DIV> </DIV>
<DIV class=lock-spectrum > <DIV class=lock-spectrum >
<DIV class=lock-icon lock-icon-secure > <DIV class=lock-icon lock-icon-secure >
...@@ -48,7 +48,7 @@ View requests in Network Panel ...@@ -48,7 +48,7 @@ View requests in Network Panel
</DIV> </DIV>
<DIV class=origin-view-section > <DIV class=origin-view-section >
<DIV class=origin-view-section-title > <DIV class=origin-view-section-title >
Not Secure Not secure
</DIV> </DIV>
<DIV > <DIV >
Your connection to this origin is not secure. Your connection to this origin is not secure.
...@@ -59,7 +59,7 @@ After interstitial is shown: ...@@ -59,7 +59,7 @@ After interstitial is shown:
<DIV class=widget vbox security-main-view > <DIV class=widget vbox security-main-view >
<DIV class=security-summary > <DIV class=security-summary >
<DIV class=security-summary-section-title > <DIV class=security-summary-section-title >
Security Overview Security overview
</DIV> </DIV>
<DIV class=lock-spectrum > <DIV class=lock-spectrum >
<DIV class=lock-icon lock-icon-secure > <DIV class=lock-icon lock-icon-secure >
......
...@@ -5,7 +5,7 @@ Tests addition of explanation when all page resources are transferred securely ( ...@@ -5,7 +5,7 @@ Tests addition of explanation when all page resources are transferred securely (
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Secure Resources Secure resources
</DIV> </DIV>
<DIV > <DIV >
All resources on this page are served securely. All resources on this page are served securely.
......
...@@ -8,7 +8,7 @@ Test: Summary Override Text ...@@ -8,7 +8,7 @@ Test: Summary Override Text
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Secure Resources Secure resources
</DIV> </DIV>
<DIV > <DIV >
All resources on this page are served securely. All resources on this page are served securely.
......
...@@ -5,7 +5,7 @@ Tests active mixed content blocking in the security panel. ...@@ -5,7 +5,7 @@ Tests active mixed content blocking in the security panel.
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Secure Resources Secure resources
</DIV> </DIV>
<DIV > <DIV >
All resources on this page are served securely. All resources on this page are served securely.
...@@ -32,7 +32,7 @@ View 1 request in Network Panel ...@@ -32,7 +32,7 @@ View 1 request in Network Panel
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Secure Resources Secure resources
</DIV> </DIV>
<DIV > <DIV >
All resources on this page are served securely. All resources on this page are served securely.
......
Tests that the security details for an origin are updated if its security state changes. Tests that the security details for an origin are updated if its security state changes.
Sidebar Origins -------------------------------- Sidebar Origins --------------------------------
Group: Main Origin Group: Main origin
Group: Secure Origins Group: Secure origins
<SPAN class=title > <SPAN class=title >
https://foo.test https://foo.test
</SPAN> </SPAN>
Group: Unknown / Canceled Group: Unknown / canceled
<SPAN class=title > <SPAN class=title >
https://bar.test https://bar.test
</SPAN> </SPAN>
...@@ -43,7 +43,7 @@ TLS 1.2 ...@@ -43,7 +43,7 @@ TLS 1.2
</DIV> </DIV>
<DIV class=details-table-row > <DIV class=details-table-row >
<DIV > <DIV >
Key Exchange Key exchange
</DIV> </DIV>
<DIV > <DIV >
Key_Exchange Key_Exchange
...@@ -89,7 +89,7 @@ foo.test ...@@ -89,7 +89,7 @@ foo.test
</DIV> </DIV>
<DIV class=details-table-row > <DIV class=details-table-row >
<DIV > <DIV >
Valid From Valid from
</DIV> </DIV>
<DIV > <DIV >
Mon, 20 Mar 2017 08:53:20 GMT Mon, 20 Mar 2017 08:53:20 GMT
...@@ -97,7 +97,7 @@ Mon, 20 Mar 2017 08:53:20 GMT ...@@ -97,7 +97,7 @@ Mon, 20 Mar 2017 08:53:20 GMT
</DIV> </DIV>
<DIV class=details-table-row > <DIV class=details-table-row >
<DIV > <DIV >
Valid Until Valid until
</DIV> </DIV>
<DIV > <DIV >
Wed, 18 May 2033 03:33:20 GMT Wed, 18 May 2033 03:33:20 GMT
......
...@@ -42,7 +42,7 @@ The connection to this site uses a strong protocol (TLS 1.2), a strong key excha ...@@ -42,7 +42,7 @@ The connection to this site uses a strong protocol (TLS 1.2), a strong key excha
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Secure Resources Secure resources
</DIV> </DIV>
<DIV > <DIV >
All resources on this page are served securely. All resources on this page are served securely.
......
...@@ -8,7 +8,7 @@ Test: Summary Override Text ...@@ -8,7 +8,7 @@ Test: Summary Override Text
</DIV> </DIV>
<DIV class=security-explanation-text > <DIV class=security-explanation-text >
<DIV class=security-explanation-title > <DIV class=security-explanation-title >
Secure Resources Secure resources
</DIV> </DIV>
<DIV > <DIV >
All resources on this page are served securely. All resources on this page are served securely.
......
Tests that requests to unresolved origins result in unknown security state and show up in the sidebar origin list. Tests that requests to unresolved origins result in unknown security state and show up in the sidebar origin list.
Group: Main Origin Group: Main origin
Group: Unknown / Canceled Group: Unknown / canceled
<SPAN class=title > <SPAN class=title >
http://unknown http://unknown
</SPAN> </SPAN>
......
...@@ -498,10 +498,10 @@ Security.SecurityPanelSidebarTree = class extends UI.TreeOutlineInShadow { ...@@ -498,10 +498,10 @@ Security.SecurityPanelSidebarTree = class extends UI.TreeOutlineInShadow {
* @enum {string} * @enum {string}
*/ */
Security.SecurityPanelSidebarTree.OriginGroupName = { Security.SecurityPanelSidebarTree.OriginGroupName = {
MainOrigin: Common.UIString('Main Origin'), MainOrigin: Common.UIString('Main origin'),
NonSecure: Common.UIString('Non-Secure Origins'), NonSecure: Common.UIString('Non-secure origins'),
Secure: Common.UIString('Secure Origins'), Secure: Common.UIString('Secure origins'),
Unknown: Common.UIString('Unknown / Canceled') Unknown: Common.UIString('Unknown / canceled')
}; };
/** /**
...@@ -589,12 +589,12 @@ Security.SecurityMainView = class extends UI.VBox { ...@@ -589,12 +589,12 @@ Security.SecurityMainView = class extends UI.VBox {
// Fill the security summary section. // Fill the security summary section.
this._summarySection.createChild('div', 'security-summary-section-title').textContent = this._summarySection.createChild('div', 'security-summary-section-title').textContent =
Common.UIString('Security Overview'); Common.UIString('Security overview');
var lockSpectrum = this._summarySection.createChild('div', 'lock-spectrum'); var lockSpectrum = this._summarySection.createChild('div', 'lock-spectrum');
lockSpectrum.createChild('div', 'lock-icon lock-icon-secure').title = Common.UIString('Secure'); lockSpectrum.createChild('div', 'lock-icon lock-icon-secure').title = Common.UIString('Secure');
lockSpectrum.createChild('div', 'lock-icon lock-icon-neutral').title = Common.UIString('Not Secure'); lockSpectrum.createChild('div', 'lock-icon lock-icon-neutral').title = Common.UIString('Not secure');
lockSpectrum.createChild('div', 'lock-icon lock-icon-insecure').title = Common.UIString('Not Secure (Broken)'); lockSpectrum.createChild('div', 'lock-icon lock-icon-insecure').title = Common.UIString('Not secure (broken)');
this._summarySection.createChild('div', 'triangle-pointer-container') this._summarySection.createChild('div', 'triangle-pointer-container')
.createChild('div', 'triangle-pointer-wrapper') .createChild('div', 'triangle-pointer-wrapper')
...@@ -680,7 +680,7 @@ Security.SecurityMainView = class extends UI.VBox { ...@@ -680,7 +680,7 @@ Security.SecurityMainView = class extends UI.VBox {
!this._insecureContentStatus.ranContentWithCertErrors)) { !this._insecureContentStatus.ranContentWithCertErrors)) {
this._addExplanation(this._securityExplanationsMain, /** @type {!Protocol.Security.SecurityStateExplanation} */ ({ this._addExplanation(this._securityExplanationsMain, /** @type {!Protocol.Security.SecurityStateExplanation} */ ({
'securityState': Protocol.Security.SecurityState.Secure, 'securityState': Protocol.Security.SecurityState.Secure,
'summary': Common.UIString('Secure Resources'), 'summary': Common.UIString('Secure resources'),
'description': Common.UIString('All resources on this page are served securely.') 'description': Common.UIString('All resources on this page are served securely.')
})); }));
} }
...@@ -696,7 +696,7 @@ Security.SecurityMainView = class extends UI.VBox { ...@@ -696,7 +696,7 @@ Security.SecurityMainView = class extends UI.VBox {
if (this._insecureContentStatus.ranMixedContent) { if (this._insecureContentStatus.ranMixedContent) {
this._addMixedContentExplanation( this._addMixedContentExplanation(
this._securityExplanationsMain, this._insecureContentStatus.ranInsecureContentStyle, this._securityExplanationsMain, this._insecureContentStatus.ranInsecureContentStyle,
Common.UIString('Active Mixed Content'), Common.UIString('Active mixed content'),
Common.UIString( Common.UIString(
'You have recently allowed non-secure content (such as scripts or iframes) to run on this site.'), 'You have recently allowed non-secure content (such as scripts or iframes) to run on this site.'),
Network.NetworkLogView.MixedContentFilterValues.BlockOverridden, Network.NetworkLogView.MixedContentFilterValues.BlockOverridden,
...@@ -706,13 +706,13 @@ Security.SecurityMainView = class extends UI.VBox { ...@@ -706,13 +706,13 @@ Security.SecurityMainView = class extends UI.VBox {
this._addMixedFormExplanation( this._addMixedFormExplanation(
// TODO(elawrence): Replace |displayedInsecureContentStyle| with |containedMixedFormStyle|. https://crbug.com/705003 // TODO(elawrence): Replace |displayedInsecureContentStyle| with |containedMixedFormStyle|. https://crbug.com/705003
this._securityExplanationsMain, this._insecureContentStatus.displayedInsecureContentStyle, this._securityExplanationsMain, this._insecureContentStatus.displayedInsecureContentStyle,
Common.UIString('Non-secure Form'), Common.UIString('Non-secure form'),
Common.UIString('The page includes a form with a non-secure "action" attribute.')); Common.UIString('The page includes a form with a non-secure "action" attribute.'));
} }
if (this._insecureContentStatus.displayedMixedContent) { if (this._insecureContentStatus.displayedMixedContent) {
this._addMixedContentExplanation( this._addMixedContentExplanation(
this._securityExplanationsMain, this._insecureContentStatus.displayedInsecureContentStyle, this._securityExplanationsMain, this._insecureContentStatus.displayedInsecureContentStyle,
Common.UIString('Mixed Content'), Common.UIString('The site includes HTTP resources.'), Common.UIString('Mixed content'), Common.UIString('The site includes HTTP resources.'),
Network.NetworkLogView.MixedContentFilterValues.Displayed, showDisplayedMixedContentInNetworkPanel); Network.NetworkLogView.MixedContentFilterValues.Displayed, showDisplayedMixedContentInNetworkPanel);
} }
} }
...@@ -877,13 +877,13 @@ Security.SecurityOriginView = class extends UI.VBox { ...@@ -877,13 +877,13 @@ Security.SecurityOriginView = class extends UI.VBox {
var table = new Security.SecurityDetailsTable(); var table = new Security.SecurityDetailsTable();
connectionSection.appendChild(table.element()); connectionSection.appendChild(table.element());
table.addRow('Protocol', originState.securityDetails.protocol); table.addRow(Common.UIString('Protocol'), originState.securityDetails.protocol);
if (originState.securityDetails.keyExchange) if (originState.securityDetails.keyExchange)
table.addRow('Key Exchange', originState.securityDetails.keyExchange); table.addRow(Common.UIString('Key exchange'), originState.securityDetails.keyExchange);
if (originState.securityDetails.keyExchangeGroup) if (originState.securityDetails.keyExchangeGroup)
table.addRow('Key Exchange Group', originState.securityDetails.keyExchangeGroup); table.addRow(Common.UIString('Key exchange group'), originState.securityDetails.keyExchangeGroup);
table.addRow( table.addRow(
'Cipher', originState.securityDetails.cipher + Common.UIString('Cipher'), originState.securityDetails.cipher +
(originState.securityDetails.mac ? ' with ' + originState.securityDetails.mac : '')); (originState.securityDetails.mac ? ' with ' + originState.securityDetails.mac : ''));
// Create the certificate section outside the callback, so that it appears in the right place. // Create the certificate section outside the callback, so that it appears in the right place.
...@@ -905,8 +905,8 @@ Security.SecurityOriginView = class extends UI.VBox { ...@@ -905,8 +905,8 @@ Security.SecurityOriginView = class extends UI.VBox {
certificateSection.appendChild(table.element()); certificateSection.appendChild(table.element());
table.addRow(Common.UIString('Subject'), originState.securityDetails.subjectName); table.addRow(Common.UIString('Subject'), originState.securityDetails.subjectName);
table.addRow(Common.UIString('SAN'), sanDiv); table.addRow(Common.UIString('SAN'), sanDiv);
table.addRow(Common.UIString('Valid From'), validFromString); table.addRow(Common.UIString('Valid from'), validFromString);
table.addRow(Common.UIString('Valid Until'), validUntilString); table.addRow(Common.UIString('Valid until'), validUntilString);
table.addRow(Common.UIString('Issuer'), originState.securityDetails.issuer); table.addRow(Common.UIString('Issuer'), originState.securityDetails.issuer);
table.addRow( table.addRow(
'', Security.SecurityPanel.createCertificateViewerButton2( '', Security.SecurityPanel.createCertificateViewerButton2(
...@@ -932,14 +932,14 @@ Security.SecurityOriginView = class extends UI.VBox { ...@@ -932,14 +932,14 @@ Security.SecurityOriginView = class extends UI.VBox {
var sctTable = new Security.SecurityDetailsTable(); var sctTable = new Security.SecurityDetailsTable();
sctTableWrapper.appendChild(sctTable.element()); sctTableWrapper.appendChild(sctTable.element());
var sct = originState.securityDetails.signedCertificateTimestampList[i]; var sct = originState.securityDetails.signedCertificateTimestampList[i];
sctTable.addRow(Common.UIString('Log Name'), sct.logDescription); sctTable.addRow(Common.UIString('Log name'), sct.logDescription);
sctTable.addRow(Common.UIString('Log ID'), sct.logId.replace(/(.{2})/g, '$1 ')); sctTable.addRow(Common.UIString('Log ID'), sct.logId.replace(/(.{2})/g, '$1 '));
sctTable.addRow(Common.UIString('Validation Status'), sct.status); sctTable.addRow(Common.UIString('Validation status'), sct.status);
sctTable.addRow(Common.UIString('Source'), sct.origin); sctTable.addRow(Common.UIString('Source'), sct.origin);
sctTable.addRow(Common.UIString('Issued At'), new Date(sct.timestamp).toUTCString()); sctTable.addRow(Common.UIString('Issued at'), new Date(sct.timestamp).toUTCString());
sctTable.addRow(Common.UIString('Hash Algorithm'), sct.hashAlgorithm); sctTable.addRow(Common.UIString('Hash algorithm'), sct.hashAlgorithm);
sctTable.addRow(Common.UIString('Signature Algorithm'), sct.signatureAlgorithm); sctTable.addRow(Common.UIString('Signature algorithm'), sct.signatureAlgorithm);
sctTable.addRow(Common.UIString('Signature Data'), sct.signatureData.replace(/(.{2})/g, '$1 ')); sctTable.addRow(Common.UIString('Signature data'), sct.signatureData.replace(/(.{2})/g, '$1 '));
} }
// Add link to toggle between displaying of the summary of the SCT(s) and the detailed SCT(s). // Add link to toggle between displaying of the summary of the SCT(s) and the detailed SCT(s).
...@@ -963,13 +963,13 @@ Security.SecurityOriginView = class extends UI.VBox { ...@@ -963,13 +963,13 @@ Security.SecurityOriginView = class extends UI.VBox {
Common.UIString('The security details above are from the first inspected response.'); Common.UIString('The security details above are from the first inspected response.');
} else if (originState.securityState !== Protocol.Security.SecurityState.Unknown) { } else if (originState.securityState !== Protocol.Security.SecurityState.Unknown) {
var notSecureSection = this.element.createChild('div', 'origin-view-section'); var notSecureSection = this.element.createChild('div', 'origin-view-section');
notSecureSection.createChild('div', 'origin-view-section-title').textContent = Common.UIString('Not Secure'); notSecureSection.createChild('div', 'origin-view-section-title').textContent = Common.UIString('Not secure');
notSecureSection.createChild('div').textContent = notSecureSection.createChild('div').textContent =
Common.UIString('Your connection to this origin is not secure.'); Common.UIString('Your connection to this origin is not secure.');
} else { } else {
var noInfoSection = this.element.createChild('div', 'origin-view-section'); var noInfoSection = this.element.createChild('div', 'origin-view-section');
noInfoSection.createChild('div', 'origin-view-section-title').textContent = noInfoSection.createChild('div', 'origin-view-section-title').textContent =
Common.UIString('No Security Information'); Common.UIString('No security information');
noInfoSection.createChild('div').textContent = noInfoSection.createChild('div').textContent =
Common.UIString('No security details are available for this origin.'); Common.UIString('No security details are available for this origin.');
} }
...@@ -982,7 +982,7 @@ Security.SecurityOriginView = class extends UI.VBox { ...@@ -982,7 +982,7 @@ Security.SecurityOriginView = class extends UI.VBox {
_createSanDiv(sanList) { _createSanDiv(sanList) {
var sanDiv = createElement('div'); var sanDiv = createElement('div');
if (sanList.length === 0) { if (sanList.length === 0) {
sanDiv.textContent = Common.UIString('(N/A)'); sanDiv.textContent = Common.UIString('(n/a)');
sanDiv.classList.add('empty-san'); sanDiv.classList.add('empty-san');
} else { } else {
var truncatedNumToShow = 2; var truncatedNumToShow = 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment