commit fda64175c76c4809579c9d8db2c0af924ddd41fc
parent df7b12438b27497d8c05523ce4f550870a0074e1
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Wed, 22 Oct 2025 14:47:05 +0000
Bug 1913668 - add a CSS webcompat intervention for workbench.researchallofus.org; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D269474
Diffstat:
3 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -3594,6 +3594,25 @@
}
]
},
+ "1913668": {
+ "label": "workbench.researchallofus.org",
+ "bugs": {
+ "1913668": {
+ "issue": "firefox-blocked-completely",
+ "matches": ["*://workbench.researchallofus.org/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["all"],
+ "content_scripts": {
+ "css": [
+ "bug1913668-workbench.researchallofus.org-hide-browser-warning.css"
+ ]
+ }
+ }
+ ]
+ },
"1913720": {
"label": "CitrusLab",
"bugs": {
diff --git a/browser/extensions/webcompat/injections/css/bug1913668-workbench.researchallofus.org-hide-browser-warning.css b/browser/extensions/webcompat/injections/css/bug1913668-workbench.researchallofus.org-hide-browser-warning.css
@@ -0,0 +1,13 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+/**
+ * workbench.researchallofus.org - Hide unsupported browser warning.
+ *
+ * Bug #1913668 - https://bugzilla.mozilla.org/show_bug.cgi?id=1913668
+ * WebCompat issue #140432 - https://webcompat.com/issues/140432
+ */
+#outdated:has(#buttonUpdateBrowser) {
+ display: none !important;
+}
diff --git a/testing/webcompat/interventions/tests/test_1913668_workbench_researchallofus_org.py b/testing/webcompat/interventions/tests/test_1913668_workbench_researchallofus_org.py
@@ -0,0 +1,19 @@
+import pytest
+
+URL = "https://workbench.researchallofus.org/login"
+
+UNSUPPORTED_TEXT = "Chrome"
+
+
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL, wait="none")
+ assert client.await_text(UNSUPPORTED_TEXT, is_displayed=False)
+
+
+@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)