commit 5e33f152b7c6d5e41f15512522e60aff73e00062
parent d810b6452d62cc2fa18fb28576ce10742a592e28
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Wed, 22 Oct 2025 14:47:05 +0000
Bug 1898936 - add a desktop-only UA override for app.stormx.io; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D269476
Diffstat:
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -2088,6 +2088,21 @@
}
]
},
+ "1898936": {
+ "label": "app.stormx.io",
+ "bugs": {
+ "1898936": {
+ "issue": "firefox-blocked-completely",
+ "matches": ["*://app.stormx.io/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["desktop"],
+ "ua_string": ["add_Chrome"]
+ }
+ ]
+ },
"1898915": {
"label": "africanews.com",
"bugs": {
diff --git a/testing/webcompat/interventions/tests/test_1898936_app_stormx_io.py b/testing/webcompat/interventions/tests/test_1898936_app_stormx_io.py
@@ -0,0 +1,32 @@
+import pytest
+
+URL = "https://app.stormx.io/"
+SUPPORTED_CSS = "button.rs-btn-primary"
+UNSUPPORTED_TEXT = "Browser is not supported"
+
+
+@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_text(UNSUPPORTED_TEXT, 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_text(UNSUPPORTED_TEXT, is_displayed=True)
+ assert not client.find_css(SUPPORTED_CSS, is_displayed=True)
+
+
+@pytest.mark.only_platforms("android")
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_not_blocked_on_android(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)