Commit 4f7aaf2f authored by felt@chromium.org's avatar felt@chromium.org

Security interstitial tweaks

Designers asked for some final tweaks to polish the interstitials. Small changes to CSS and strings.

BUG=381260
passed all of the bots at least once but cq is dead dead dead:
NOTRY=true

Review URL: https://codereview.chromium.org/344943002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278787 0039d316-1c4b-4281-b951-d872f2087c98
parent 8176de1e
...@@ -9238,17 +9238,17 @@ Keep your key file in a safe place. You will need it to create new versions of y ...@@ -9238,17 +9238,17 @@ Keep your key file in a safe place. You will need it to create new versions of y
</message> </message>
<if expr="is_android or is_ios"> <if expr="is_android or is_ios">
<message name="IDS_MALWARE_V3_PRIMARY_PARAGRAPH" desc="Mobile: The primary explanatory paragraph for the malware interstitial."> <message name="IDS_MALWARE_V3_PRIMARY_PARAGRAPH" desc="Mobile: The primary explanatory paragraph for the malware interstitial.">
Attackers might be trying to install dangerous programs on your device that steal or delete your information (for example, photos, passwords, messages, and credit cards). Attackers currently on <ph name="BEGIN_BOLD">&lt;strong&gt;</ph><ph name="SITE">$1<ex>example.com</ex></ph><ph name="END_BOLD">&lt;/strong&gt;</ph> might attempt to install dangerous programs on your device that steal or delete your information (for example, photos, passwords, messages, and credit cards).
</message> </message>
</if> </if>
<if expr="is_macosx"> <if expr="is_macosx">
<message name="IDS_MALWARE_V3_PRIMARY_PARAGRAPH" desc="Mac: The primary explanatory paragraph for the malware interstitial."> <message name="IDS_MALWARE_V3_PRIMARY_PARAGRAPH" desc="Mac: The primary explanatory paragraph for the malware interstitial.">
Attackers might be trying to install dangerous programs on your Mac that steal or delete your information (for example, photos, passwords, messages, and credit cards). Attackers currently on <ph name="BEGIN_BOLD">&lt;strong&gt;</ph><ph name="SITE">$1<ex>example.com</ex></ph><ph name="END_BOLD">&lt;/strong&gt;</ph> might attempt to install dangerous programs on your Mac that steal or delete your information (for example, photos, passwords, messages, and credit cards).
</message> </message>
</if> </if>
<if expr="not is_android and not is_macosx and not is_ios"> <if expr="not is_android and not is_macosx and not is_ios">
<message name="IDS_MALWARE_V3_PRIMARY_PARAGRAPH" desc="The primary explanatory paragraph for the malware interstitial."> <message name="IDS_MALWARE_V3_PRIMARY_PARAGRAPH" desc="The primary explanatory paragraph for the malware interstitial.">
Attackers might be trying to install dangerous programs on your computer that steal or delete your information (for example, photos, passwords, messages, and credit cards). Attackers currently on <ph name="BEGIN_BOLD">&lt;strong&gt;</ph><ph name="SITE">$1<ex>example.com</ex></ph><ph name="END_BOLD">&lt;/strong&gt;</ph> might attempt to install dangerous programs on your computer that steal or delete your information (for example, photos, passwords, messages, and credit cards).
</message> </message>
</if> </if>
<message name="IDS_MALWARE_V3_EXPLANATION_PARAGRAPH" desc="The explanation of why Safe Browsing has blocked the page."> <message name="IDS_MALWARE_V3_EXPLANATION_PARAGRAPH" desc="The explanation of why Safe Browsing has blocked the page.">
...@@ -9287,13 +9287,13 @@ Keep your key file in a safe place. You will need it to create new versions of y ...@@ -9287,13 +9287,13 @@ Keep your key file in a safe place. You will need it to create new versions of y
Phishing attack ahead Phishing attack ahead
</message> </message>
<message name="IDS_PHISHING_V3_PRIMARY_PARAGRAPH" desc="The primary explanatory paragraph for the malware interstitial."> <message name="IDS_PHISHING_V3_PRIMARY_PARAGRAPH" desc="The primary explanatory paragraph for the malware interstitial.">
Attackers on <ph name="SITE">$1<ex>example.com</ex></ph> might be trying to trick you to steal your information (for example, login passwords and credit cards). Attackers on <ph name="BEGIN_BOLD">&lt;strong&gt;</ph><ph name="SITE">$1<ex>example.com</ex></ph><ph name="END_BOLD">&lt;/strong&gt;</ph> might try to trick you to steal your information (for example, passwords, messages, or credit cards).
</message> </message>
<message name="IDS_PHISHING_V3_EXPLANATION_PARAGRAPH" desc="The explanation of why Safe Browsing has blocked the page."> <message name="IDS_PHISHING_V3_EXPLANATION_PARAGRAPH" desc="The explanation of why Safe Browsing has blocked the page.">
Google Safe Browsing recently detected phishing on <ph name="SITE">$1<ex>example.com</ex></ph>. <ph name="BEGIN_LINK">&lt;a href="#" id="help-link"&gt;</ph>Phishing sites<ph name="END_LINK">&lt;/a&gt;</ph> pretend to be other websites to trick you. Google Safe Browsing recently detected phishing on <ph name="SITE">$1<ex>example.com</ex></ph>. <ph name="BEGIN_LINK">&lt;a href="#" id="help-link"&gt;</ph>Phishing sites<ph name="END_LINK">&lt;/a&gt;</ph> pretend to be other websites to trick you.
</message> </message>
<message name="IDS_PHISHING_V3_PROCEED_PARAGRAPH" desc="The paragraph that lets the user skip the warning."> <message name="IDS_PHISHING_V3_PROCEED_PARAGRAPH" desc="The paragraph that lets the user skip the warning.">
If you understand the risks to your security, you may <ph name="BEGIN_LINK">&lt;a href="#" id="proceed-link"&gt;</ph>visit this unsafe site<ph name="END_LINK">&lt;/a&gt;</ph>. If you understand the risks to your security, you may <ph name="BEGIN_LINK">&lt;a href="#" id="proceed-link"&gt;</ph>visit this infected site<ph name="END_LINK">&lt;/a&gt;</ph>.
</message> </message>
<!-- SSL Interstitial V2 --> <!-- SSL Interstitial V2 -->
......
...@@ -51,7 +51,7 @@ button:hover { ...@@ -51,7 +51,7 @@ button:hover {
} }
#details p:not(:first-of-type) { #details p:not(:first-of-type) {
margin-top: 39px; margin-top: 20px;
} }
#error-code { #error-code {
...@@ -211,7 +211,7 @@ h2 { ...@@ -211,7 +211,7 @@ h2 {
button, button,
[dir='rtl'] button { [dir='rtl'] button {
float: none; float: none;
height: auto; font-size: 1em;
width: 100%; width: 100%;
} }
...@@ -241,4 +241,8 @@ h2 { ...@@ -241,4 +241,8 @@ h2 {
.nav-wrapper { .nav-wrapper {
margin-top: 30px; margin-top: 30px;
} }
.small-link {
font-size: 1em;
}
} }
...@@ -1301,7 +1301,9 @@ void SafeBrowsingBlockingPageV3::PopulateMalwareLoadTimeData( ...@@ -1301,7 +1301,9 @@ void SafeBrowsingBlockingPageV3::PopulateMalwareLoadTimeData(
"heading", l10n_util::GetStringUTF16(IDS_MALWARE_V3_HEADING)); "heading", l10n_util::GetStringUTF16(IDS_MALWARE_V3_HEADING));
load_time_data->SetString( load_time_data->SetString(
"primaryParagraph", "primaryParagraph",
l10n_util::GetStringUTF16(IDS_MALWARE_V3_PRIMARY_PARAGRAPH)); l10n_util::GetStringFUTF16(
IDS_MALWARE_V3_PRIMARY_PARAGRAPH,
base::UTF8ToUTF16(url_.host())));
if (trial_condition_ == kCondV3History) { if (trial_condition_ == kCondV3History) {
load_time_data->SetString( load_time_data->SetString(
"explanationParagraph", "explanationParagraph",
......
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