diff options
Diffstat (limited to 'chromium/components/security_interstitials/core/browser/resources/interstitial_large.js')
-rw-r--r-- | chromium/components/security_interstitials/core/browser/resources/interstitial_large.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chromium/components/security_interstitials/core/browser/resources/interstitial_large.js b/chromium/components/security_interstitials/core/browser/resources/interstitial_large.js index 0fa7dbf5ecf..d57ec6945a3 100644 --- a/chromium/components/security_interstitials/core/browser/resources/interstitial_large.js +++ b/chromium/components/security_interstitials/core/browser/resources/interstitial_large.js @@ -69,6 +69,8 @@ function setupEvents() { var captivePortal = interstitialType == 'CAPTIVE_PORTAL'; var badClock = ssl && loadTimeData.getBoolean('bad_clock'); var hidePrimaryButton = loadTimeData.getBoolean('hide_primary_button'); + var showRecurrentErrorParagraph = loadTimeData.getBoolean( + 'show_recurrent_error_paragraph'); if (ssl) { $('body').classList.add(badClock ? 'bad-clock' : 'ssl'); @@ -78,6 +80,9 @@ function setupEvents() { $('body').classList.add('captive-portal'); } else { $('body').classList.add('safe-browsing'); + // Override the default theme color. + document.querySelector('meta[name=theme-color]').setAttribute('content', + 'rgb(206, 52, 38)'); } $('icon').classList.add('icon'); @@ -123,6 +128,12 @@ function setupEvents() { $('proceed-link').classList.add('small-link'); } + if (!ssl || !showRecurrentErrorParagraph) { + $('recurrent-error-message').classList.add(HIDDEN_CLASS); + } else { + $('body').classList.add('showing-recurrent-error-message'); + } + if ($('diagnostic-link')) { $('diagnostic-link').addEventListener('click', function(event) { sendCommand(SecurityInterstitialCommandId.CMD_OPEN_DIAGNOSTIC); |