tor-browser

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

commit c19e111530352ec43e513d5e40f8a9c9846a2b27
parent be94162fc615a1f846f959ce84bd3bb68895b0d2
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Fri, 31 Oct 2025 15:54:28 +0000

Bug 1994142 - remove our webcompat intervention for virtual-cards.exnode.ru; r=webcompat-reviewers,ksenia

Differential Revision: https://phabricator.services.mozilla.com/D270750

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 17-----------------
Dbrowser/extensions/webcompat/injections/css/1994142-virtual-cards.exnode.ru-fix-table-layout.css | 12------------
Dtesting/webcompat/interventions/tests/test_1994142_virtual-cards_exnode_ru.py | 38--------------------------------------
3 files changed, 0 insertions(+), 67 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -5697,23 +5697,6 @@ } ] }, - "1994142": { - "label": "virtual-cards.exnode.ru", - "bugs": { - "1994142": { - "issue": "broken-layout", - "matches": ["*://virtual-cards.exnode.ru/*"] - } - }, - "interventions": [ - { - "platforms": ["desktop"], - "content_scripts": { - "css": ["1994142-virtual-cards.exnode.ru-fix-table-layout.css"] - } - } - ] - }, "1994571": { "label": "chick-fil-a.com", "bugs": { diff --git a/browser/extensions/webcompat/injections/css/1994142-virtual-cards.exnode.ru-fix-table-layout.css b/browser/extensions/webcompat/injections/css/1994142-virtual-cards.exnode.ru-fix-table-layout.css @@ -1,12 +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/. */ - -/** - * virtual-cards.exnode.ru - text in table cells is visually broken - * Bug #1994142 - https://bugzilla.mozilla.org/show_bug.cgi?id=1994142 - * WebCompat issue #182769 - https://webcompat.com/issues/182769 - */ -.flexbe-table__row--first .flexbe-table__cell { - min-width: 0 !important; -} diff --git a/testing/webcompat/interventions/tests/test_1994142_virtual-cards_exnode_ru.py b/testing/webcompat/interventions/tests/test_1994142_virtual-cards_exnode_ru.py @@ -1,38 +0,0 @@ -import pytest - -URL = "https://virtual-cards.exnode.ru/" - -CELLS_CSS = ".flexbe-table__td:nth-child(2)" - - -async def table_text_properly_rendered(client): - await client.navigate(URL) - cells = client.await_css(CELLS_CSS, is_displayed=True, all=True) - # the text of cells is taller than it is wide when they are rendered incorrectly. - return client.execute_script( - """ - const [cells] = arguments; - for (const cell of arguments[0]) { - const box = cell.getBoundingClientRect(); - if (box.height > box.width) { - return false; - } - } - return true; - """, - cells, - ) - - -@pytest.mark.skip_platforms("android") -@pytest.mark.asyncio -@pytest.mark.with_interventions -async def test_enabled(client): - assert await table_text_properly_rendered(client) - - -@pytest.mark.skip_platforms("android") -@pytest.mark.asyncio -@pytest.mark.without_interventions -async def test_disabled(client): - assert not await table_text_properly_rendered(client)