commit 8dc1e66f6c1f41ccfa978bbd6545693e44c6ae6f
parent bfe029cc7387fd3f44365d4f34fed57b859ca2b0
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Wed, 7 Jan 2026 22:31:04 +0000
Bug 1974686 - remove our webcompat intervention for www.hermes.admin.ch; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D278139
Diffstat:
3 files changed, 2 insertions(+), 62 deletions(-)
diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json
@@ -5458,25 +5458,6 @@
}
]
},
- "1974686": {
- "label": "hermes.admin.ch",
- "bugs": {
- "1974686": {
- "issue": "broken-layout",
- "matches": [
- "*://www.hermes.admin.ch/de/projektmanagement/szenarien/it-entwicklung/szenariouebersicht.html*"
- ]
- }
- },
- "interventions": [
- {
- "platforms": ["all"],
- "content_scripts": {
- "css": ["bug1974686-hermes_admin_ch.css"]
- }
- }
- ]
- },
"1980129": {
"label": "app.simplenote.com",
"bugs": {
diff --git a/browser/extensions/webcompat/injections/css/bug1974686-hermes_admin_ch.css b/browser/extensions/webcompat/injections/css/bug1974686-hermes_admin_ch.css
@@ -1,17 +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/. */
-
-/**
- * hermes.admin.ch - table cells overlap
- * Bug #1974686 - https://bugzilla.mozilla.org/show_bug.cgi?id=1974686
- *
- * The page sets a 1px height on its table cells, which has interop issues.
- * We can unset that and adjust their other CSS to improve the situation.
- */
-.hermespjm-projektuebersicht-row {
- height: unset;
-}
-.hermespjm-projektuebersicht-cell-verantwortlicher {
- position: static;
-}
diff --git a/testing/webcompat/interventions/tests/test_1974686_hermes_admin_ch.py b/testing/webcompat/interventions/tests/test_1974686_hermes_admin_ch.py
@@ -2,33 +2,9 @@ import pytest
URL = "https://www.hermes.admin.ch/de/projektmanagement/szenarien/it-entwicklung/szenariouebersicht.html"
-CELLS_CSS = ".hermespjm-projektuebersicht-cell"
-
-
-async def are_table_cells_collapsed(client):
- await client.navigate(URL, wait="none")
- client.await_css(CELLS_CSS, is_displayed=True)
- return client.execute_script(
- """
- const cells = document.querySelectorAll(arguments[0]);
- for (const cell of cells) {
- if (cell.clientHeight < cell.scrollHeight) {
- return true;
- }
- }
- return false;
- """,
- CELLS_CSS,
- )
-
-
-@pytest.mark.asyncio
-@pytest.mark.with_interventions
-async def test_enabled(client):
- assert not await are_table_cells_collapsed(client)
-
@pytest.mark.asyncio
@pytest.mark.without_interventions
async def test_disabled(client):
- assert await are_table_cells_collapsed(client)
+ await client.navigate(URL, wait="none")
+ client.await_text("404", is_displayed=True)