tor-browser

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

commit 9f384cb4525e0135d5f7663ce9bf4feff8135b77
parent 2a6d274745e5e8af998fb49c357638bb3a363c71
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Tue, 25 Nov 2025 16:52:45 +0000

Bug 1898638 - add a UA override for gmbinder.com; r=denschub,webcompat-reviewers

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

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

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -5381,6 +5381,21 @@ } ] }, + "1898638": { + "label": "gmbinder.com", + "bugs": { + "1898638": { + "issue": "unsupported-warning", + "matches": ["*://*.gmbinder.com/*"] + } + }, + "interventions": [ + { + "platforms": ["all"], + "ua_string": ["add_Chrome"] + } + ] + }, "1898983": { "label": "elibrary.ferc.gov", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1898638_gmbinder_com.py b/testing/webcompat/interventions/tests/test_1898638_gmbinder_com.py @@ -0,0 +1,20 @@ +import pytest + +URL = "https://gmbinder.com/" + +UNSUPPORTED_TEXT = "Incompatible Browser" + + +@pytest.mark.asyncio +@pytest.mark.with_interventions +async def test_enabled(client): + await client.navigate(URL) + await client.stall(3) + assert not client.find_text(UNSUPPORTED_TEXT, is_displayed=True) + + +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL) + assert client.await_text(UNSUPPORTED_TEXT, is_displayed=True)