Commit 6ac07da5 authored by Mustafa Emre Acer's avatar Mustafa Emre Acer Committed by Commit Bot

Update the lookalike interstitial

This CL changes the title, header text, and the primary action button.

Screenshot: https://drive.google.com/file/d/1SdjbX8Jd7pEB0PDYDh_jAGEmmk5s7law/view?usp=sharing

Bug: 1006867
Change-Id: Ibe3a98d59b598efd930ed20d6d92a44702860770
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824027
Commit-Queue: Joe DeBlasio <jdeblasio@chromium.org>
Reviewed-by: default avatarJoe DeBlasio <jdeblasio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699832}
parent df68d7e6
...@@ -87,18 +87,14 @@ void LookalikeUrlInterstitialPage::PopulateInterstitialStrings( ...@@ -87,18 +87,14 @@ void LookalikeUrlInterstitialPage::PopulateInterstitialStrings(
security_interstitials::common_string_util::PopulateDarkModeDisplaySetting( security_interstitials::common_string_util::PopulateDarkModeDisplaySetting(
load_time_data); load_time_data);
load_time_data->SetString( const base::string16 hostname =
"tabTitle", security_interstitials::common_string_util::GetFormattedHostName(
l10n_util::GetStringFUTF16( request_url());
IDS_LOOKALIKE_URL_TITLE, load_time_data->SetString("tabTitle", l10n_util::GetStringFUTF16(
security_interstitials::common_string_util::GetFormattedHostName( IDS_LOOKALIKE_URL_TITLE, hostname));
request_url())));
load_time_data->SetString( load_time_data->SetString(
"heading", "heading",
l10n_util::GetStringFUTF16( l10n_util::GetStringFUTF16(IDS_LOOKALIKE_URL_HEADING, hostname));
IDS_LOOKALIKE_URL_HEADING,
security_interstitials::common_string_util::GetFormattedHostName(
request_url())));
load_time_data->SetString( load_time_data->SetString(
"primaryParagraph", "primaryParagraph",
l10n_util::GetStringUTF16(IDS_LOOKALIKE_URL_PRIMARY_PARAGRAPH)); l10n_util::GetStringUTF16(IDS_LOOKALIKE_URL_PRIMARY_PARAGRAPH));
...@@ -106,7 +102,7 @@ void LookalikeUrlInterstitialPage::PopulateInterstitialStrings( ...@@ -106,7 +102,7 @@ void LookalikeUrlInterstitialPage::PopulateInterstitialStrings(
"proceedButtonText", l10n_util::GetStringUTF16(IDS_LOOKALIKE_URL_IGNORE)); "proceedButtonText", l10n_util::GetStringUTF16(IDS_LOOKALIKE_URL_IGNORE));
load_time_data->SetString( load_time_data->SetString(
"primaryButtonText", "primaryButtonText",
l10n_util::GetStringUTF16(IDS_LOOKALIKE_URL_CONTINUE)); l10n_util::GetStringFUTF16(IDS_LOOKALIKE_URL_CONTINUE, hostname));
} }
void LookalikeUrlInterstitialPage::OnInterstitialClosing() { void LookalikeUrlInterstitialPage::OnInterstitialClosing() {
......
...@@ -65,17 +65,17 @@ ...@@ -65,17 +65,17 @@
</message> </message>
<!-- Lookalike URL warning --> <!-- Lookalike URL warning -->
<message name="IDS_LOOKALIKE_URL_TITLE" desc="Tab title. Context: the requested URL might be trying to trick the user since it looks like a more popular URL."> <message name="IDS_LOOKALIKE_URL_TITLE" desc="Tab title. Context: the requested URL might be trying to trick the user since it looks like a more popular URL. This interstitial points the user to the safe site instead.">
Continue to <ph name="DOMAIN">$1<ex>example.com</ex></ph>? Did you mean <ph name="DOMAIN">$1<ex>example.com</ex></ph>?
</message> </message>
<message name="IDS_LOOKALIKE_URL_HEADING" desc="Large heading. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL."> <message name="IDS_LOOKALIKE_URL_HEADING" desc="Large heading. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL. This interstitial points the user to the safe site instead.">
Continue to &lt;a href="#" id="dont-proceed-link"&gt;<ph name="DOMAIN">$1<ex>example.com</ex></ph>&lt;/a&gt;? Did you mean &lt;a href="#" id="dont-proceed-link"&gt;<ph name="DOMAIN">$1<ex>example.com</ex></ph>&lt;/a&gt;?
</message> </message>
<message name="IDS_LOOKALIKE_URL_IGNORE" desc="Button text. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL. This button dismisses the interstitial and navigates to the originally-requested URL."> <message name="IDS_LOOKALIKE_URL_IGNORE" desc="Button text. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL. This button dismisses the interstitial and navigates to the originally-requested URL.">
Ignore Ignore
</message> </message>
<message name="IDS_LOOKALIKE_URL_CONTINUE" desc="Button text. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL. This button dismisses the interstitial and navigates to the suggested (safe) URL."> <message name="IDS_LOOKALIKE_URL_CONTINUE" desc="Button text. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL. This button dismisses the interstitial and navigates to the suggested (safe) URL.">
Continue Go to <ph name="DOMAIN">$1<ex>example.com</ex></ph>
</message> </message>
<message name="IDS_LOOKALIKE_URL_PRIMARY_PARAGRAPH" desc="Main paragraph of an error message. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL."> <message name="IDS_LOOKALIKE_URL_PRIMARY_PARAGRAPH" desc="Main paragraph of an error message. Context: the error page that's shown when the requested URL might be trying to trick the user since it looks like a more popular URL.">
The site you just tried to visit looks fake. Attackers sometimes mimic sites by making small, hard-to-see changes to the URL. The site you just tried to visit looks fake. Attackers sometimes mimic sites by making small, hard-to-see changes to the URL.
......
260a7f133f2a8fcec1743f8f2bb7538cc7a2fc50 94e03c4a69925c4c0ddc5362977fb31a388f513b
\ No newline at end of file \ No newline at end of file
260a7f133f2a8fcec1743f8f2bb7538cc7a2fc50 94e03c4a69925c4c0ddc5362977fb31a388f513b
\ No newline at end of file \ No newline at end of file
260a7f133f2a8fcec1743f8f2bb7538cc7a2fc50 94e03c4a69925c4c0ddc5362977fb31a388f513b
\ No newline at end of file \ No newline at end of file
a0e10eb89867355fc98c930e468397e8dadf4f17 94e03c4a69925c4c0ddc5362977fb31a388f513b
\ No newline at end of file \ No newline at end of file
260a7f133f2a8fcec1743f8f2bb7538cc7a2fc50 94e03c4a69925c4c0ddc5362977fb31a388f513b
\ No newline at end of file \ No newline at end of file
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