tor-browser

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

commit 29383ea6133ca0140dbb6c8a8ae197e55fbce0fd
parent 12b82f81f231f6ae75da071ed5d37f56ff3dd1ad
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Thu, 16 Oct 2025 16:12:16 +0000

Bug 1891078 - remove our webcompat intervention for autostar-novoross.ru; r=webcompat-reviewers,ksenia

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 17-----------------
Dbrowser/extensions/webcompat/injections/css/bug1836103-autostar-novoross.ru-make-map-taller.css | 13-------------
Mtesting/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py | 52++++------------------------------------------------
3 files changed, 4 insertions(+), 78 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -1273,23 +1273,6 @@ } ] }, - "1836103": { - "label": "autostar-novoross.ru", - "bugs": { - "1891078": { - "issue": "broken-layout", - "matches": ["*://autostar-novoross.ru/*"] - } - }, - "interventions": [ - { - "platforms": ["all"], - "content_scripts": { - "css": ["bug1836103-autostar-novoross.ru-make-map-taller.css"] - } - } - ] - }, "1836105": { "label": "cnn.com", "bugs": { diff --git a/browser/extensions/webcompat/injections/css/bug1836103-autostar-novoross.ru-make-map-taller.css b/browser/extensions/webcompat/injections/css/bug1836103-autostar-novoross.ru-make-map-taller.css @@ -1,13 +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/. */ - -/** - * autostar-novoross.ru - Map is not as tall as expected - * Bug #1836103 - https://bugzilla.mozilla.org/show_bug.cgi?id=1836103 - * WebCompat issue #80763 - https://github.com/webcompat/web-bugs/issues/80763 - */ - -.t396 .tn-atom { - height: 100%; -} diff --git a/testing/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py b/testing/webcompat/interventions/tests/test_1836103_autostar_novoross_ru.py @@ -1,55 +1,11 @@ -import asyncio - import pytest URL = "https://autostar-novoross.ru/" -IFRAME_CSS = "iframe[src*='google.com/maps']" -RENEW_TEXT = "402 Please renew your subscription" - - -async def map_is_correct_height(client): - # This site often just gives a useless page with the RENEW_TEXT. - # That seems to happen more often with webdriver on. - await client.make_preload_script("delete navigator.__proto__.webdriver") - - # We try reloading a few times to see if we are able to get past that message. - for _ in range(10): - await client.navigate(URL) - iframe, renew = client.await_first_element_of( - [ - client.css(IFRAME_CSS), - client.text(RENEW_TEXT), - ], - is_displayed=True, - ) - - if iframe: - break - - await asyncio.sleep(1) - - if not iframe: - pytest.xfail( - "Site is repeatedly giving a '402 please renew your subscription' message. Try testing manually." - ) - return - - return client.execute_script( - """ - const iframe = arguments[0]; - return iframe.clientHeight == iframe.parentNode.clientHeight; - """, - iframe, - ) - - -@pytest.mark.asyncio -@pytest.mark.with_interventions -async def test_enabled(client): - assert await map_is_correct_height(client) +DEAD_SITE_TEXT = "Domain has been assigned" @pytest.mark.asyncio @pytest.mark.without_interventions -async def test_disabled(client): - assert not await map_is_correct_height(client) +async def test_regression(client): + await client.navigate(URL, wait="none") + assert client.await_text(DEAD_SITE_TEXT)