tor-browser

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

commit a6043a6e439c8fd2a243e65be3938fc4b73194b8
parent 21c17d41b87bad7091b83bbbe6122033a8238353
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Tue,  2 Dec 2025 18:41:13 +0000

Bug 2001936 - add a desktop-only UA override for larksuite.com; r=ksenia,webcompat-reviewers

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15+++++++++++++++
Atesting/webcompat/interventions/tests/test_2001936_larksuite_com.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 @@ -6192,5 +6192,20 @@ } } ] + }, + "2001936": { + "label": "larksuite.com", + "bugs": { + "2001936": { + "issue": "firefox-blocked-completely", + "matches": ["*://*.larksuite.com/*"] + } + }, + "interventions": [ + { + "platforms": ["desktop"], + "ua_string": ["Chrome", "add_Firefox_as_Gecko"] + } + ] } } diff --git a/testing/webcompat/interventions/tests/test_2001936_larksuite_com.py b/testing/webcompat/interventions/tests/test_2001936_larksuite_com.py @@ -0,0 +1,23 @@ +import pytest + +URL = "https://www.larksuite.com/mail" +SUPPORTED_CSS = ".login-content-container" +UNSUPPORTED_CSS = "[onclick='toBrowserPage()']" + + +@pytest.mark.skip_platforms("android") +@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_css(UNSUPPORTED_CSS, is_displayed=True) + + +@pytest.mark.skip_platforms("android") +@pytest.mark.asyncio +@pytest.mark.without_interventions +async def test_disabled(client): + await client.navigate(URL, wait="none") + assert client.await_css(UNSUPPORTED_CSS, is_displayed=True) + assert not client.find_css(SUPPORTED_CSS, is_displayed=True)