tor-browser

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

commit e7f40ab726118b34983723534420607437556127
parent 501076c4e829bb6baff67b44e7553cc3b23feaf7
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Wed,  8 Oct 2025 13:38:22 +0000

Bug 1973019 - add an Android-only UA override for mitsukoshi.mistore.jp; r=denschub,webcompat-reviewers

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Atesting/webcompat/interventions/tests/test_1973019_mitsukoshi_mistore_jp.py | 28++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -5178,6 +5178,21 @@ } ] }, + "1973019": { + "label": "mitsukoshi.mistore.jp", + "bugs": { + "1973019": { + "issue": "broken-redirect", + "matches": ["*://mitsukoshi.mistore.jp/*"] + } + }, + "interventions": [ + { + "platforms": ["android"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] + }, "1976402": { "label": "dieseldispatch.com", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1973019_mitsukoshi_mistore_jp.py b/testing/webcompat/interventions/tests/test_1973019_mitsukoshi_mistore_jp.py @@ -0,0 +1,28 @@ +import pytest +from webdriver import NoSuchElementException + +URL = "https://mitsukoshi.mistore.jp/bunka/culture/index_sp.html" +HERO_CSS = "#add-main" + + +async def does_redirect(client): + await client.navigate(URL) + try: + client.await_css(HERO_CSS, is_displayed=True, timeout=10) + return False + except NoSuchElementException: + return True + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + assert not await does_redirect(client) + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + assert await does_redirect(client)