tor-browser

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

commit 6c6fa2583dfc4311068f2738a98df252a528fe13
parent dfd4216d3bcabef728ca22e0d3ff61371eca8d04
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Tue, 25 Nov 2025 16:52:44 +0000

Bug 2000529 - add an Android-only UA override for top.cafe.daum.net; r=denschub,webcompat-reviewers

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

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

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -6099,6 +6099,21 @@ } ] }, + "2000529": { + "label": "top.cafe.daum.net", + "bugs": { + "2000529": { + "issue": "desktop-layout-not-mobile", + "matches": ["*://top.cafe.daum.net/*"] + } + }, + "interventions": [ + { + "platforms": ["android"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] + }, "2000558": { "label": "www.jal.co.jp", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_2000529_top_cafe_daum_net.py b/testing/webcompat/interventions/tests/test_2000529_top_cafe_daum_net.py @@ -0,0 +1,23 @@ +import pytest + +URL = "https://top.cafe.daum.net/" +MOBILE_CSS = "html.os_android" +DESKTOP_CSS = "#wrapMinidaum" + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL) + assert client.await_css(MOBILE_CSS, is_displayed=True) + assert not client.find_css(DESKTOP_CSS, is_displayed=True) + + +@pytest.mark.only_platforms("android") +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL) + assert client.await_css(DESKTOP_CSS, is_displayed=True) + assert not client.find_css(MOBILE_CSS, is_displayed=True)