tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit e30e9fd0b994b0d7c77d6b039fa95da42225102c
parent 8dd14e566e00da8d2f03f1b8c336d4e2614f74d6
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Thu,  8 Jan 2026 22:02:21 +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:
Mbrowser/extensions/webcompat/data/interventions.json | 19-------------------
Dbrowser/extensions/webcompat/injections/css/bug1974686-hermes_admin_ch.css | 17-----------------
Mtesting/webcompat/interventions/tests/test_1974686_hermes_admin_ch.py | 28++--------------------------
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)