From a0d6095fb6ee295488498dc8775ed822ff080915 Mon Sep 17 00:00:00 2001 From: Julia Eskew Date: Tue, 27 Jul 2021 15:41:04 -0400 Subject: [PATCH] feat: Add token which disables different origin subframe dialog suppression for Chrome version 92. This token is added to the courseware iFrame, which enables the iFrame to retain the ability to summon modals & alerts - or open new windows via JS. This token has a limited lifespan - it currently expires around Dec 14, 2021. TNL-8559 --- lms/envs/common.py | 4 ++++ lms/templates/main.html | 1 + 2 files changed, 5 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index 84a15b8a29..a608a2fe18 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4760,3 +4760,7 @@ SHOW_ACTIVATE_CTA_POPUP_COOKIE_NAME = 'show-account-activation-popup' # .. toggle_tickets: https://github.com/edx/edx-platform/pull/27661 # .. toggle_creation_date: 2021-06-10 SHOW_ACCOUNT_ACTIVATION_CTA = False + +################# Settings for Chrome-specific origin trials ######## +# Token for " Disable Different Origin Subframe Dialog Suppression" for http://localhost:18000 +CHROME_DISABLE_SUBFRAME_DIALOG_SUPPRESSION_TOKEN = 'ArNBN7d1AkvMhJTGWXlJ8td/AN4lOokzOnqKRNkTnLqaqx0HpfYvmx8JePPs/emKh6O5fckx14LeZIGJ1AQYjgAAAABzeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjE4MDAwIiwiZmVhdHVyZSI6IkRpc2FibGVEaWZmZXJlbnRPcmlnaW5TdWJmcmFtZURpYWxvZ1N1cHByZXNzaW9uIiwiZXhwaXJ5IjoxNjM5NTI2Mzk5fQ==' # pylint: disable=line-too-long diff --git a/lms/templates/main.html b/lms/templates/main.html index 4e81c01231..2ae5405178 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -34,6 +34,7 @@ from common.djangoapps.pipeline_mako import render_require_js_path_overrides + ## Define a couple of helper functions to make life easier when ## embedding theme conditionals into templates. All inheriting