tor-browser

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

commit 01a366d9582c7420ad9a9ed6295205842b8289d2
parent 6c6fa2583dfc4311068f2738a98df252a528fe13
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Tue, 25 Nov 2025 16:52:44 +0000

Bug 1902496 - add a UA override for be.bim.mx; r=denschub,webcompat-reviewers

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Atesting/webcompat/interventions/tests/test_1902496_be_bim_mx.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 @@ -5381,6 +5381,21 @@ } ] }, + "1902496": { + "label": "be.bim.mx", + "bugs": { + "1902496": { + "issue": "firefox-blocked-completely", + "matches": ["*://be.bim.mx/*"] + } + }, + "interventions": [ + { + "platforms": ["all"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] + }, "1902507": { "label": "riverside.fm", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1902496_be_bim_mx.py b/testing/webcompat/interventions/tests/test_1902496_be_bim_mx.py @@ -0,0 +1,22 @@ +import pytest + +URL = "https://be.bim.mx/nb/index.cfm" + +UNBLOCKED_CSS = "#myModal" +BLOCKED_TEXT = "Google Chrome" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL, wait="none") + assert client.await_css(UNBLOCKED_CSS, is_displayed=True) + assert not client.find_text(BLOCKED_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(BLOCKED_TEXT, is_displayed=True) + assert not client.find_css(UNBLOCKED_CSS, is_displayed=True)