tor-browser

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

commit 81a22c8a57e5df0ec64f525ccaa9775d57dc334b
parent 15b052cacc1b0547649881fa45b908fade8a38ed
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Wed,  8 Oct 2025 22:50:22 +0000

Bug 1873166 - update our webcompat intervention for nsandi.com; r=webcompat-reviewers,ksenia

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

Diffstat:
Mbrowser/extensions/webcompat/injections/css/bug1873166-nsandi.com-hide-unsupported-message.css | 1+
Mtesting/webcompat/interventions/tests/test_1873166_108319_www_nsandi_com.py | 7+++----
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/browser/extensions/webcompat/injections/css/bug1873166-nsandi.com-hide-unsupported-message.css b/browser/extensions/webcompat/injections/css/bug1873166-nsandi.com-hide-unsupported-message.css @@ -13,6 +13,7 @@ * yet the message remains. This intervention hides that message. */ .browser-warning-fade, +#unsupported-browser, #unsupported_browser { display: none !important; } diff --git a/testing/webcompat/interventions/tests/test_1873166_108319_www_nsandi_com.py b/testing/webcompat/interventions/tests/test_1873166_108319_www_nsandi_com.py @@ -3,21 +3,20 @@ import pytest URL = "https://www.nsandi.com/" CHAT_BUTTON_CSS = "#GCLauncherbtn" -UNSUPPORTED_CSS = "#unsupported-browser" +UNSUPPORTED_TEXT = "Chrome or Safari" async def is_warning_shown(client): await client.navigate(URL) client.await_css(CHAT_BUTTON_CSS, is_displayed=True) - client.await_css(UNSUPPORTED_CSS) - return client.find_css(UNSUPPORTED_CSS, is_displayed=True) + return client.find_text(UNSUPPORTED_TEXT, is_displayed=True) @pytest.mark.only_platforms("android") @pytest.mark.asyncio @pytest.mark.with_interventions async def test_enabled(client): - assert await is_warning_shown(client) + assert not await is_warning_shown(client) @pytest.mark.only_platforms("android")