tor-browser

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

commit 841230ff854809860bb5659fadb382baab518a79
parent 3e28f91dd649df6e49fba4bca7d12521d4e7091c
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Thu,  9 Oct 2025 01:01:18 +0000

Bug 1898895 - add an Android-only UA override for eslatam.trygalaxy.com; r=webcompat-reviewers,ksenia

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Atesting/webcompat/interventions/tests/test_1898895_eslatam_trygalaxy_com.py | 24++++++++++++++++++++++++
2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -2028,6 +2028,21 @@ } ] }, + "1898895": { + "label": "eslatam.trygalaxy.com", + "bugs": { + "1898895": { + "issue": "firefox-blocked-completely", + "matches": ["*://eslatam.trygalaxy.com/*"] + } + }, + "interventions": [ + { + "platforms": ["android"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] + }, "1898904": { "label": "indigo.shireburn.com", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1898895_eslatam_trygalaxy_com.py b/testing/webcompat/interventions/tests/test_1898895_eslatam_trygalaxy_com.py @@ -0,0 +1,24 @@ +import pytest + +URL = "https://eslatam.trygalaxy.com/" + +SUPPORTED_CSS = "video" +UNSUPPORTED_TEXT = "Samsung Internet y Chrome" + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL, wait="none") + assert client.await_css(SUPPORTED_CSS, is_displayed=True) + assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) + + +@pytest.mark.only_platforms("android") +@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_css(SUPPORTED_CSS, is_displayed=True)