tor-browser

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

commit 89264d4d619c240b9cc3f007aa2ba5f4afb7992b
parent c26a868ea9b7e00849f8f0aeb6a04bc5ce03363b
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Mon,  6 Oct 2025 13:56:50 +0000

Bug 1991388 - add an Android-only UA override for gismeteo.ru to get their mobile layout; r=webcompat-reviewers,ksenia

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

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

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -5455,5 +5455,20 @@ "ua_string": ["add_Chrome"] } ] + }, + "1991388": { + "label": "gismeteo.ru", + "bugs": { + "1991388": { + "issue": "desktop-layout-not-mobile", + "matches": ["*://gismeteo.ru/*"] + } + }, + "interventions": [ + { + "platforms": ["android"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] } } 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": "145.4.0", + "version": "145.5.0", "browser_specific_settings": { "gecko": { "id": "webcompat@mozilla.org", diff --git a/testing/webcompat/interventions/tests/test_1991388_gismeteo_ru.py b/testing/webcompat/interventions/tests/test_1991388_gismeteo_ru.py @@ -0,0 +1,23 @@ +import pytest + +URL = "https://gismeteo.ru/" +MOBILE_CSS = "button.btn-burger" +DESKTOP_CSS = ".search-desktop" + + +@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)