tor-browser

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

commit ea18f3782f55eb028c944684f0f0d439f4d52304
parent 81a22c8a57e5df0ec64f525ccaa9775d57dc334b
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Wed,  8 Oct 2025 22:50:22 +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)