headless-browser: Disable viewport scrollbar painting for tests

This allows us to update how the viewport scrollbar is painted without
breaking every screenshot test.
This commit is contained in:
Timothy Flynn 2025-04-21 11:47:24 -04:00 committed by Tim Flynn
commit 9ef3fd0922
Notes: github-actions[bot] 2025-04-22 15:30:37 +00:00

View file

@ -77,6 +77,9 @@ void Application::create_platform_options(WebView::BrowserOptions& browser_optio
// Ensure consistent font rendering between operating systems. // Ensure consistent font rendering between operating systems.
web_content_options.force_fontconfig = WebView::ForceFontconfig::Yes; 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) { if (dump_gc_graph) {