commit 8f792ca8efcfd947505ade3738f1c75237e835db
parent 9f384cb4525e0135d5f7663ce9bf4feff8135b77
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Tue, 25 Nov 2025 16:52:45 +0000
Bug 1957887 - add a UA override for midi.city; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D273919
Diffstat:
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -4798,6 +4798,21 @@
}
]
},
+ "1957887": {
+ "label": "midi.city",
+ "bugs": {
+ "1957887": {
+ "issue": "unsupported-warning",
+ "matches": ["*://midi.city/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["all"],
+ "ua_string": ["add_Chrome"]
+ }
+ ]
+ },
"1959046": {
"label": "angeljackets.com",
"bugs": {
diff --git a/testing/webcompat/interventions/tests/test_1957887_midi_city.py b/testing/webcompat/interventions/tests/test_1957887_midi_city.py
@@ -0,0 +1,20 @@
+import pytest
+
+URL = "https://midi.city/"
+
+UNSUPPORTED_TEXT = "Unsupported 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)