From 9ef3fd0922164cd35804fc2cb99c77edc12a11ab Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 21 Apr 2025 11:47:24 -0400 Subject: [PATCH] headless-browser: Disable viewport scrollbar painting for tests This allows us to update how the viewport scrollbar is painted without breaking every screenshot test. --- UI/Headless/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/Headless/Application.cpp b/UI/Headless/Application.cpp index 11f4e31ea47..c8e90154078 100644 --- a/UI/Headless/Application.cpp +++ b/UI/Headless/Application.cpp @@ -77,6 +77,9 @@ void Application::create_platform_options(WebView::BrowserOptions& browser_optio // Ensure consistent font rendering between operating systems. web_content_options.force_fontconfig = WebView::ForceFontconfig::Yes; + + // Ensure tests are resilient to minor changes to the viewport scrollbar. + web_content_options.paint_viewport_scrollbars = WebView::PaintViewportScrollbars::No; } if (dump_gc_graph) {