commit a07d37898a28232f1426d3893d4ce13a97de92b7
parent 5a267ee2c572c9328925659f8a054be35d074b6a
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Tue, 21 Oct 2025 14:47:22 +0000
Bug 1898898 - add a UA override for app.libry.jp; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D269312
Diffstat:
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -2011,6 +2011,21 @@
}
]
},
+ "1898898": {
+ "label": "app.libry.jp",
+ "bugs": {
+ "1898898": {
+ "issue": "firefox-blocked-completely",
+ "matches": ["*://app.libry.jp/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["all"],
+ "ua_string": ["add_Chrome"]
+ }
+ ]
+ },
"1898904": {
"label": "indigo.shireburn.com",
"bugs": {
diff --git a/testing/webcompat/interventions/tests/test_1898898_app_libry_jp.py b/testing/webcompat/interventions/tests/test_1898898_app_libry_jp.py
@@ -0,0 +1,21 @@
+import pytest
+
+URL = "https://app.libry.jp/auth/login/"
+SUPPORTED_CSS = "input#user"
+UNSUPPORTED_TEXT = "Google Chrome"
+
+
+@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.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)