tor-browser

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

commit 2c813043a22d85744e1ffcd12af02b0bb432f13a
parent cc707f28c337ccd6b507847e3cc8f83c03c44e88
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Tue, 25 Nov 2025 16:52:43 +0000

Bug 1982880 - add an Android-only UA override for yoshinoya-mini-web.starboss.biz; r=denschub,webcompat-reviewers

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Mbrowser/extensions/webcompat/manifest.json | 2+-
Atesting/webcompat/interventions/tests/test_1982880_yoshinoya-mini-web_starboss_biz.py | 32++++++++++++++++++++++++++++++++
3 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -5576,6 +5576,21 @@ } ] }, + "1982880": { + "label": "yoshinoya-mini-web.starboss.biz", + "bugs": { + "1982880": { + "issue": "firefox-blocked-completely", + "matches": ["*://yoshinoya-mini-web.starboss.biz/*"] + } + }, + "interventions": [ + { + "platforms": ["android"], + "ua_string": ["add_Chrome"] + } + ] + }, "1983538": { "label": "incontrol.landrover.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": "147.7.0", + "version": "147.8.0", "browser_specific_settings": { "gecko": { "id": "webcompat@mozilla.org", diff --git a/testing/webcompat/interventions/tests/test_1982880_yoshinoya-mini-web_starboss_biz.py b/testing/webcompat/interventions/tests/test_1982880_yoshinoya-mini-web_starboss_biz.py @@ -0,0 +1,32 @@ +import pytest + +URL = "https://yoshinoya-mini-web.starboss.biz/main" +SUPPORTED_CSS = ".search-form" +UNSUPPORTED_CSS = ".not-support-title" +VPN_TEXT = "403 Forbidden" + + +async def check_site(client, expected_css): + await client.navigate(URL, wait="none") + expected, vpn = client.await_first_element_of( + [client.css(expected_css), client.text(VPN_TEXT)], + is_displayed=True, + ) + if vpn: + pytest.skip("Region-locked, cannot test. Try using a VPN set to Japan.") + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await check_site(client, SUPPORTED_CSS) + assert not client.find_css(UNSUPPORTED_CSS, is_displayed=True) + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await check_site(client, UNSUPPORTED_CSS) + assert not client.find_css(SUPPORTED_CSS, is_displayed=True)