tor-browser

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

commit 15ed06807f1fdb9a5986811cb684d52b721f16a9
parent e4ad09fb593fc50992c487b4e55888f0ef095972
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Thu,  8 Jan 2026 07:02:25 +0000

Bug 1913720 - update our webcompat intervention for CitrusLabs; r=ksenia,webcompat-reviewers

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 2+-
Mtesting/webcompat/interventions/tests/test_1913720_cotota_app.py | 21+--------------------
Atesting/webcompat/interventions/tests/test_1913720_h2breeze_com.py | 33+++++++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 21 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -3528,7 +3528,7 @@ "bugs": { "1913720": { "issue": "firefox-blocked-completely", - "matches": ["*://cotota.app/*", "https://is-sets.com/*"] + "matches": ["https://h2breeze.com/*", "https://is-sets.com/*"] } }, "interventions": [ diff --git a/testing/webcompat/interventions/tests/test_1913720_cotota_app.py b/testing/webcompat/interventions/tests/test_1913720_cotota_app.py @@ -2,32 +2,13 @@ import pytest URL = "https://cotota.app/" -SUCCESS_CSS = "#content" +SUCCESS_CSS = "#email" BLOCKED_TEXT = "403 Forbidden" -@pytest.mark.skip_platforms("android") @pytest.mark.asyncio @pytest.mark.with_interventions async def test_enabled(client): await client.navigate(URL, wait="none") assert client.await_css(SUCCESS_CSS, is_displayed=True, timeout=20) assert not client.find_text(BLOCKED_TEXT, is_displayed=True) - - -@pytest.mark.skip_platforms("android") -@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, timeout=20) - assert not client.find_css(SUCCESS_CSS, is_displayed=True) - - -@pytest.mark.only_platforms("android") -@pytest.mark.asyncio -@pytest.mark.without_interventions -async def test_disabled_mobile(client): - await client.navigate(URL, wait="none") - assert client.await_css(SUCCESS_CSS, is_displayed=True, timeout=20) - assert not client.find_text(BLOCKED_TEXT, is_displayed=True) diff --git a/testing/webcompat/interventions/tests/test_1913720_h2breeze_com.py b/testing/webcompat/interventions/tests/test_1913720_h2breeze_com.py @@ -0,0 +1,33 @@ +import pytest + +URL = "https://h2breeze.com/" + +SUCCESS_CSS = "#email" +BLOCKED_TEXT = "403 Forbidden" + + +@pytest.mark.skip_platforms("android") +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL, wait="none") + assert client.await_css(SUCCESS_CSS, is_displayed=True, timeout=20) + assert not client.find_text(BLOCKED_TEXT, is_displayed=True) + + +@pytest.mark.skip_platforms("android") +@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, timeout=20) + assert not client.find_css(SUCCESS_CSS, is_displayed=True) + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled_mobile(client): + await client.navigate(URL, wait="none") + assert client.await_css(SUCCESS_CSS, is_displayed=True, timeout=20) + assert not client.find_text(BLOCKED_TEXT, is_displayed=True)