From fe5790de9267853bc036aba8ccbc438c8b6db9f1 Mon Sep 17 00:00:00 2001 From: Alex Gibson Date: Fri, 24 May 2024 09:30:37 +0100 Subject: [PATCH] Review fixes --- bedrock/base/templates/base-protocol.html | 6 ++++++ bedrock/mozorg/templates/mozorg/robots.txt | 1 - .../privacy/templates/privacy/cookie-settings.html | 11 ++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/bedrock/base/templates/base-protocol.html b/bedrock/base/templates/base-protocol.html index 3fce01408ae..d397feb42db 100644 --- a/bedrock/base/templates/base-protocol.html +++ b/bedrock/base/templates/base-protocol.html @@ -121,6 +121,7 @@ {% block sentry_client %} {% if settings.SENTRY_FRONTEND_DSN and switch('sentry-js') %} + {# Sentry only runs on evergreen browsers so we exclude it from IE. #} {{ js_bundle('sentry') }} {% endif %} @@ -128,6 +129,7 @@ {% block site_js %} + {# Standard site JS bundles served to all evergreen browsers plus IE 10 and above. #} {{ js_bundle('lib') }} {{ js_bundle('ui') }} {{ js_bundle('fxa') }} @@ -135,6 +137,7 @@ {% endblock %} @@ -143,12 +146,14 @@ {% block stub_attribution %} {% if settings.STUB_ATTRIBUTION_RATE %} + {# Stub attribution is run on all evergreen browsers plus IE9 and above. #} {{ js_bundle('stub-attribution') }} {% endif %} {% endblock %} + {# Glean only runs on evergreen browsers so we exclude it from IE. #} {% block glean %} {% if switch('glean-analytics') %} {{ js_bundle('glean') }} @@ -162,6 +167,7 @@ {% block consent_banner_js %} + {# Consent banner is shown to all evergreen browsers plus IE9 and above #} {{ js_bundle('consent-banner') }} {% endblock %} diff --git a/bedrock/mozorg/templates/mozorg/robots.txt b/bedrock/mozorg/templates/mozorg/robots.txt index d6bac1597b0..7003d750158 100644 --- a/bedrock/mozorg/templates/mozorg/robots.txt +++ b/bedrock/mozorg/templates/mozorg/robots.txt @@ -6,6 +6,5 @@ disallow: /*/firstrun/ disallow: /*/newsletter/existing/ disallow: /*/whatsnew/ disallow: /*/etc/ -disallow: /*/privacy/websites/cookie-settings/ {% endif -%} Sitemap: {{ request.scheme }}://{{ request.get_host() }}/sitemap.xml diff --git a/bedrock/privacy/templates/privacy/cookie-settings.html b/bedrock/privacy/templates/privacy/cookie-settings.html index e079ee2aedd..2447ccbd198 100644 --- a/bedrock/privacy/templates/privacy/cookie-settings.html +++ b/bedrock/privacy/templates/privacy/cookie-settings.html @@ -44,11 +44,6 @@

{{ ftl('cookie-settings-page-title') }}

- {# noscript warning to enable JavaScript #} - -

{{ ftl('cookie-settings-explainer') }}

{{ ftl('cookie-settings-page-intro-v2', fallback='cookie-settings-page-intro') }}

@@ -158,6 +153,11 @@

{{ ftl('cookie-settings-privacy-heading') }}

{% block consent_banner_js %} {{ super() }} + {# Cookie settings page is supported on all evergreen browsers plus IE9 and above #} {{ js_bundle('cookie-settings-form') }} {% endblock %}