tor-browser

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

commit 7c8d6b49017dcd098c42eed3234ba37422da74c8
parent 994e40083b20a9fc02b910f0150ebea29cd942b3
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Fri, 19 Dec 2025 23:16:52 +0000

Bug 1898937 - add back our UA override for goodyearfiaetrc.com; r=webcompat-reviewers,ksenia

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Mtesting/webcompat/interventions/tests/test_1898937_goodyearfiaetrc_com.py | 16+++++++++++++---
2 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -2273,6 +2273,21 @@ } ] }, + "1898937": { + "label": "goodyearfiaetrc.com", + "bugs": { + "1898937": { + "issue": "firefox-blocked-completely", + "matches": ["*://www.goodyearfiaetrc.com/standings*"] + } + }, + "interventions": [ + { + "platforms": ["all"], + "ua_string": ["Chrome_with_FxQuantum"] + } + ] + }, "1898938": { "label": "conference.amwell.com", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1898937_goodyearfiaetrc_com.py b/testing/webcompat/interventions/tests/test_1898937_goodyearfiaetrc_com.py @@ -2,11 +2,21 @@ import pytest URL = "https://www.goodyearfiaetrc.com/standings" -DEAD_TEXT = "Page not found" +SUPPORTED_CSS = "#result #iframe" +UNSUPPORTED_TEXT = "Please open this Page in Chrome, Edge or Safari" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL, wait="none") + assert client.await_css(SUPPORTED_CSS, is_displayed=True) + assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) @pytest.mark.asyncio @pytest.mark.without_interventions -async def test_if_site_returns(client): +async def test_disabled(client): await client.navigate(URL, wait="none") - assert client.await_text(DEAD_TEXT, is_displayed=True) + assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True) + assert not client.find_css(SUPPORTED_CSS, is_displayed=True)