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

Unified Diff: components/error_page/common/localized_error.cc

Issue 2321503002: (Re-)introduce AncestorThrottle to handle 'X-Frame-Options'. (Closed)
Patch Set: Ugh. Created 4 years, 3 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/error_page/common/localized_error.cc
diff --git a/components/error_page/common/localized_error.cc b/components/error_page/common/localized_error.cc
index 1f6fffe697036b7980482d36903a7bcf79e7e76a..628ea04f3e580b594bf0212e79c3f7f299a8349a 100644
--- a/components/error_page/common/localized_error.cc
+++ b/components/error_page/common/localized_error.cc
@@ -82,6 +82,7 @@ struct LocalizedErrorMap {
int buttons; // Which buttons if any to show.
};
+// clang-format off
const LocalizedErrorMap net_error_options[] = {
{net::ERR_TIMED_OUT,
IDS_ERRORPAGES_HEADING_NOT_AVAILABLE,
@@ -311,7 +312,14 @@ const LocalizedErrorMap net_error_options[] = {
SUGGEST_NONE,
SHOW_NO_BUTTONS,
},
+ {net::ERR_BLOCKED_BY_RESPONSE,
+ IDS_ERRORPAGES_HEADING_BLOCKED,
+ IDS_ERRORPAGES_SUMMARY_CONNECTION_REFUSED,
+ SUGGEST_NONE,
+ SHOW_NO_BUTTONS
+ },
};
+// clang-format on
// Special error page to be used in the case of navigating back to a page
// generated by a POST. LocalizedError::HasStrings expects this net error code

Powered by Google App Engine
This is Rietveld 408576698