tor-browser

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

commit af61846fe3430fbaacd3735179b2b2c1d9d54925
parent a6043a6e439c8fd2a243e65be3938fc4b73194b8
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Tue,  2 Dec 2025 18:41:14 +0000

Bug 1895672 - add a UA override for hackgreensdr.org and websdr.78dx.ru; r=ksenia,webcompat-reviewers

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Atesting/webcompat/interventions/tests/test_1895672_hackgreensdr_org.py | 20++++++++++++++++++++
Atesting/webcompat/interventions/tests/test_1895672_websdr_78dx_ru.py | 20++++++++++++++++++++
3 files changed, 55 insertions(+), 0 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -1901,6 +1901,21 @@ } ] }, + "1895672": { + "label": "hackgreensdr.org and websdr.78dx.ru", + "bugs": { + "1895672": { + "issue": "broken-audio", + "matches": ["*://hackgreensdr.org/*", "*://websdr.78dx.ru/*"] + } + }, + "interventions": [ + { + "platforms": ["all"], + "ua_string": ["add_Chrome"] + } + ] + }, "1895997": { "label": "e.seb.lt", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1895672_hackgreensdr_org.py b/testing/webcompat/interventions/tests/test_1895672_hackgreensdr_org.py @@ -0,0 +1,20 @@ +import pytest + +URL = "http://hackgreensdr.org:8901/" + +AUDIO_START_CSS = "input[type=button][value='Chrome audio start']" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL, wait="none") + client.await_css(AUDIO_START_CSS, is_displayed=True, timeout=4000) + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL) + await client.stall(3) + assert not client.find_css(AUDIO_START_CSS, is_displayed=True) diff --git a/testing/webcompat/interventions/tests/test_1895672_websdr_78dx_ru.py b/testing/webcompat/interventions/tests/test_1895672_websdr_78dx_ru.py @@ -0,0 +1,20 @@ +import pytest + +URL = "http://websdr.78dx.ru:8901/" + +AUDIO_START_CSS = "input[type=button][value='Audio start']" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL, wait="none") + client.await_css(AUDIO_START_CSS, is_displayed=True) + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL) + await client.stall(3) + assert not client.find_css(AUDIO_START_CSS, is_displayed=True)