commit d77a8a4b6f38c98315b612a7892d9c86e01a6efa
parent c4985ebc9b0658298452c40de8efb000781064ac
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Fri, 31 Oct 2025 15:54:26 +0000
Bug 1898959 - add back our UA override for indices.circana.com; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D270741
Diffstat:
2 files changed, 40 insertions(+), 13 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -4089,6 +4089,21 @@
}
]
},
+ "1933811": {
+ "label": "indices.circana.com",
+ "bugs": {
+ "1898959": {
+ "issue": "firefox-blocked-completely",
+ "matches": ["*://indices.circana.com/*"]
+ }
+ },
+ "interventions": [
+ {
+ "platforms": ["all"],
+ "ua_string": ["add_Chrome"]
+ }
+ ]
+ },
"1933910": {
"label": "www.tiktok.com/tiktokstudio",
"bugs": {
diff --git a/testing/webcompat/interventions/tests/test_1933811_indices_circana_com.py b/testing/webcompat/interventions/tests/test_1933811_indices_circana_com.py
@@ -1,25 +1,37 @@
+import asyncio
+
import pytest
-from webdriver.bidi.error import UnknownErrorException
URL = "https://indices.circana.com"
OLD_URL = "https://indices.iriworldwide.com"
+BAD_CSS = ".hiddPage"
+
+
+async def does_unsupported_banner_appear(client, url):
+ await client.navigate(url, wait="complete")
+ await asyncio.sleep(2)
+ return client.find_css(BAD_CSS)
@pytest.mark.asyncio
@pytest.mark.with_interventions
-async def test_regression_site_is_dead(client):
- try:
- await client.navigate(URL)
- assert False
- except UnknownErrorException:
- assert True
+async def test_enabled(client):
+ assert not await does_unsupported_banner_appear(client, URL)
@pytest.mark.asyncio
@pytest.mark.with_interventions
-async def test_regression_old_site_is_dead(client):
- try:
- await client.navigate(OLD_URL)
- assert False
- except UnknownErrorException:
- assert True
+async def test_enabled_old_url(client):
+ assert not await does_unsupported_banner_appear(client, OLD_URL)
+
+
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled(client):
+ assert await does_unsupported_banner_appear(client, URL)
+
+
+@pytest.mark.asyncio
+@pytest.mark.without_interventions
+async def test_disabled_old_url(client):
+ assert await does_unsupported_banner_appear(client, OLD_URL)