tor-browser

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

commit c847d129124461a75db1b659e883c5f2c9101ea7
parent dafde2167d6d9601f10ba33f421079f3fb236095
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Tue, 21 Oct 2025 14:47:21 +0000

Bug 1949152 - add a UA override for www.gatufotogruppen.se; r=webcompat-reviewers,ksenia

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Mbrowser/extensions/webcompat/manifest.json | 2+-
Atesting/webcompat/interventions/tests/test_1949152_gatufotogruppen_com.py | 18++++++++++++++++++
3 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -4390,6 +4390,21 @@ } ] }, + "1949152": { + "label": "gatufotogruppen.com", + "bugs": { + "1949152": { + "issue": "firefox-blocked-completely", + "matches": ["*://www.gatufotogruppen.se/*"] + } + }, + "interventions": [ + { + "platforms": ["all"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] + }, "1949466": { "label": "lapalabradeldia.com", "bugs": { diff --git a/browser/extensions/webcompat/manifest.json b/browser/extensions/webcompat/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Web Compatibility Interventions", "description": "Urgent post-release fixes for web compatibility.", - "version": "146.2.0", + "version": "146.3.0", "browser_specific_settings": { "gecko": { "id": "webcompat@mozilla.org", diff --git a/testing/webcompat/interventions/tests/test_1949152_gatufotogruppen_com.py b/testing/webcompat/interventions/tests/test_1949152_gatufotogruppen_com.py @@ -0,0 +1,18 @@ +import pytest + +URL = "https://www.gatufotogruppen.se/?page_id=5497" +DESIRED_CSS = ".ultp-block-image" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL) + assert client.find_css(DESIRED_CSS) + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL) + assert not client.find_css(DESIRED_CSS)