commit 1ae413695f06a12829ffc614bbabb106366cd194
parent 26591faa8a814e9d7dccfa80cffd1beeb3fedc53
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Fri, 19 Dec 2025 23:16:55 +0000
Bug 2005520 - add a CSS webcompat intervention for portal.adtpulse.com; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D276952
Diffstat:
3 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -6233,5 +6233,22 @@
"ua_string": ["replace_colon_in_rv_with_space"]
}
]
+ },
+ "2005520": {
+ "label": "portal.adtpulse.com",
+ "bugs": {
+ "2005520": {
+ "issue": "unsupported-warning",
+ "matches": ["*://portal.adtpulse.com/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["all"],
+ "content_scripts": {
+ "css": ["bug2005520-portal.adtpulse.com-hide-unsupported.css"]
+ }
+ }
+ ]
}
}
diff --git a/browser/extensions/webcompat/injections/css/bug2005520-portal.adtpulse.com-hide-unsupported.css b/browser/extensions/webcompat/injections/css/bug2005520-portal.adtpulse.com-hide-unsupported.css
@@ -0,0 +1,12 @@
+/* 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/. */
+
+/**
+ * portal.adtpulse.com - Browser is not supported message
+ * Bug #2005520 - https://bugzilla.mozilla.org/show_bug.cgi?id=2005520
+ * WebCompat issue #194450 - https://webcompat.com/issues/194450
+ */
+#unsupported_warning_row {
+ display: none;
+}
diff --git a/testing/webcompat/interventions/tests/test_2005520_portal_adtpulse_com.py b/testing/webcompat/interventions/tests/test_2005520_portal_adtpulse_com.py
@@ -0,0 +1,19 @@
+import pytest
+
+URL = "https://portal.adtpulse.com/myhome/30.0.0-61/access/signin.jsp"
+UNSUPPORTED_TEXT = "will not work properly on your operating system and browser"
+
+
+@pytest.mark.asyncio
+@pytest.mark.with_interventions
+async def test_enabled(client):
+ await client.navigate(URL)
+ await client.stall(2)
+ 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)