commit d9d281b4dd896012f82ff5c2ecb8dbd900087deb
parent d0df6cda96ef523d7b08ed9c876d5208dc9bb500
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Wed, 5 Nov 2025 18:20:14 +0000
Bug 1819476 - remove our webcompat intervention for axisbank.com; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D271339
Diffstat:
3 files changed, 0 insertions(+), 58 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -912,23 +912,6 @@
}
]
},
- "1819476": {
- "label": "axisbank.com",
- "bugs": {
- "1819476": {
- "issue": "page-fails-to-load",
- "matches": ["*://*.axisbank.com/*"]
- }
- },
- "interventions": [
- {
- "platforms": ["all"],
- "content_scripts": {
- "js": ["bug1819476-axisbank.com-webkitSpeechRecognition-shim.js"]
- }
- }
- ]
- },
"1823966": {
"label": "elearning.dmv.ca.gov",
"bugs": {
diff --git a/browser/extensions/webcompat/injections/js/bug1819476-axisbank.com-webkitSpeechRecognition-shim.js b/browser/extensions/webcompat/injections/js/bug1819476-axisbank.com-webkitSpeechRecognition-shim.js
@@ -1,23 +0,0 @@
-/* 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/. */
-
-"use strict";
-
-/**
- * axisbank.com - Shim webkitSpeechRecognition
- * WebCompat issue #117770 - https://webcompat.com/issues/117770
- *
- * The page with bank offerings is not loading options due to the
- * site relying on webkitSpeechRecognition, which is undefined in Firefox.
- * Shimming it to `class {}` makes the pages work.
- */
-
-/* globals exportFunction */
-
-console.info(
- "webkitSpeechRecognition was shimmed for compatibility reasons. See https://webcompat.com/issues/117770 for details."
-);
-
-Object.getPrototypeOf(window).wrappedJSObject.webkitSpeechRecognition =
- class {};
diff --git a/testing/webcompat/interventions/tests/test_1819476_axisbank_com.py b/testing/webcompat/interventions/tests/test_1819476_axisbank_com.py
@@ -1,18 +0,0 @@
-import pytest
-
-URL = "https://www.axisbank.com/retail/cards/credit-card"
-SITE_CSS = "[id*=quick-links]:not(:empty)"
-ERROR_MSG = "webkitSpeechRecognition is not defined"
-
-
-@pytest.mark.asyncio
-@pytest.mark.with_interventions
-async def test_enabled(client):
- await client.navigate(URL)
- assert client.await_css(SITE_CSS, timeout=120) # the site can be slow
-
-
-@pytest.mark.asyncio
-@pytest.mark.without_interventions
-async def test_disabled(client):
- await client.navigate(URL, await_console_message=ERROR_MSG, timeout=10)