tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 501076c4e829bb6baff67b44e7553cc3b23feaf7
parent cc9ffac1c9d6b857ccf3c27b7af6543811762d4f
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Wed,  8 Oct 2025 13:38:22 +0000

Bug 1992121 - add a UA override for tutor-uksouth.classroom.cloud; r=denschub,webcompat-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D267806

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Atesting/webcompat/interventions/tests/test_1992121_tutor-uksouth_classroom_cloud.py | 22++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -5388,6 +5388,21 @@ } ] }, + "1992121": { + "label": "tutor-uksouth.classroom.cloud", + "bugs": { + "1992121": { + "issue": "firefox-blocked-completely", + "matches": ["*://tutor-uksouth.classroom.cloud/*"] + } + }, + "interventions": [ + { + "platforms": ["all"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] + }, "1992402": { "label": "ehssrisk.sai360.net", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1992121_tutor-uksouth_classroom_cloud.py b/testing/webcompat/interventions/tests/test_1992121_tutor-uksouth_classroom_cloud.py @@ -0,0 +1,22 @@ +import pytest + +URL = "https://tutor-uksouth.classroom.cloud/" + +SUPPORTED_TEXT = "Access Denied" +UNSUPPORTED_TEXT = "your browser is not supported" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL, wait="none") + assert client.await_text(SUPPORTED_TEXT, is_displayed=True) + assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL, wait="none") + assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True) + assert not client.find_text(SUPPORTED_TEXT, is_displayed=True)