tor-browser

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

commit 6229918ebc89bcf19d4c5ee594940c9e02d9dd35
parent b7a2e2d65ec006ed7bdb4a1bfd393acc7fe6d2a6
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date:   Thu, 16 Oct 2025 16:12:12 +0000

Bug 1907062 - remove our UA override for upload-images.jianshu.io; r=webcompat-reviewers,ksenia

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

Diffstat:
Mbrowser/extensions/webcompat/data/interventions.json | 15---------------
Mtesting/webcompat/interventions/tests/test_1907062_jianshu_io.py | 13++-----------
2 files changed, 2 insertions(+), 26 deletions(-)

diff --git a/browser/extensions/webcompat/data/interventions.json b/browser/extensions/webcompat/data/interventions.json @@ -3448,21 +3448,6 @@ } ] }, - "1907062": { - "label": "upload-images.jianshu.io", - "bugs": { - "1907062": { - "issue": "broken-images", - "matches": ["*://upload-images.jianshu.io/upload_images/*"] - } - }, - "interventions": [ - { - "platforms": ["all"], - "ua_string": ["Chrome_with_FxQuantum"] - } - ] - }, "1908636": { "label": "xmgl.ccccltd.cn", "bugs": { diff --git a/testing/webcompat/interventions/tests/test_1907062_jianshu_io.py b/testing/webcompat/interventions/tests/test_1907062_jianshu_io.py @@ -4,12 +4,11 @@ URL = "https://www.jianshu.com/p/68ea4f004c8a" IMG_CSS = "img[data-original-src='//upload-images.jianshu.io/upload_images/27952728-939c10fd072ed9e3.png']" -BROKEN_CSS = f".image-view-error {IMG_CSS}" @pytest.mark.asyncio -@pytest.mark.with_interventions -async def test_enabled(client): +@pytest.mark.without_interventions +async def test_regression(client): await client.make_preload_script( f""" window.__promise = new Promise(done => {{ @@ -24,11 +23,3 @@ async def test_enabled(client): await client.navigate(URL, wait="none") client.scroll_into_view(client.await_css(IMG_CSS)) assert client.execute_async_script("window.__promise.then(arguments[0])") - - -@pytest.mark.asyncio -@pytest.mark.without_interventions -async def test_disabled(client): - await client.navigate(URL, wait="none") - client.scroll_into_view(client.await_css(IMG_CSS)) - assert client.await_css(BROKEN_CSS, timeout=40)