commit 7a30b24c52bf46f431d4fe0798497948ba29f2d8
parent 7ae0d244b8a0f7b719c74d08468bd23230951b04
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Wed, 8 Oct 2025 13:38:20 +0000
Bug 1939466 - remove our webcompat intervention for vodafone.it; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D267800
Diffstat:
4 files changed, 1 insertion(+), 71 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -4138,26 +4138,6 @@
}
]
},
- "1939466": {
- "label": "www.vodafone.it",
- "bugs": {
- "1939466": {
- "issue": "page-fails-to-load",
- "matches": ["*://*.vodafone.it/*"]
- }
- },
- "interventions": [
- {
- "platforms": ["all"],
- "content_scripts": {
- "all_frames": true,
- "js": [
- "bug1939466-vodafone.it-polyfill-ancestorOrigins-and-InstallTrigger.js"
- ]
- }
- }
- ]
- },
"1939697": {
"label": "paypal.com",
"bugs": {
diff --git a/browser/extensions/webcompat/injections/js/bug1939466-vodafone.it-polyfill-ancestorOrigins-and-InstallTrigger.js b/browser/extensions/webcompat/injections/js/bug1939466-vodafone.it-polyfill-ancestorOrigins-and-InstallTrigger.js
@@ -1,26 +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";
-
-/**
- * Bug 1939466 - Fix "No right to access page!" error on vodafone.it
- *
- * The site has a bug with its frame-ancestor code for Firefox, which we can
- * bypass by undefining InstallTrigger and spoofing location.ancestorOrigins.
- */
-
-/* globals cloneInto */
-
-console.info(
- "location.ancestorOrigins and InstallTrigger are being shimmed for compatibility reasons. https://bugzilla.mozilla.org/show_bug.cgi?id=1939466 for details."
-);
-
-delete window.wrappedJSObject.InstallTrigger;
-
-window.wrappedJSObject.Location.prototype.ancestorOrigins = cloneInto(
- ["https://www.vodafone.it"],
- window
-);
-console.error(location, location.ancestorOrigins);
diff --git a/browser/extensions/webcompat/manifest.json b/browser/extensions/webcompat/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Web Compatibility Interventions",
"description": "Urgent post-release fixes for web compatibility.",
- "version": "145.6.0",
+ "version": "145.7.0",
"browser_specific_settings": {
"gecko": {
"id": "webcompat@mozilla.org",
diff --git a/testing/webcompat/interventions/tests/test_1939466_vodafone_it.py b/testing/webcompat/interventions/tests/test_1939466_vodafone_it.py
@@ -1,24 +0,0 @@
-import pytest
-
-URL = "https://www.vodafone.it/eshop/contenuti/rete-vodafone/copertura-mobile-5g.html"
-FRAME_CSS = ".iframeContainer iframe[src*='geamaps.dsl.vodafone.it']"
-SUCCESS_CSS = "#comuni_provincia_autocomplete"
-FAILURE_TEXT = "No right to access page!"
-
-
-@pytest.mark.asyncio
-@pytest.mark.with_interventions
-async def test_enabled(client):
- await client.navigate(URL, wait="none")
- client.switch_to_frame(client.await_css(FRAME_CSS, is_displayed=True))
- assert client.await_css(SUCCESS_CSS, is_displayed=True)
- assert not client.find_text(FAILURE_TEXT, is_displayed=True)
-
-
-@pytest.mark.asyncio
-@pytest.mark.without_interventions
-async def test_disabled(client):
- await client.navigate(URL, wait="none")
- client.switch_to_frame(client.await_css(FRAME_CSS, is_displayed=True))
- assert client.await_text(FAILURE_TEXT, is_displayed=True)
- assert not client.find_css(SUCCESS_CSS, is_displayed=True)