From 1206e346b953dbd8b19d2cc1878dfc114883031d Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Mon, 4 May 2026 20:03:47 -0400 Subject: [PATCH] fix(browser): default webview background to white Sites that don't set an html/body background (e.g. httpbin.org/html) were showing Orca's dark chrome through the transparent webview host. Real browsers paint the viewport white by default; sites with their own background still override this. Co-authored-by: Orca --- src/renderer/src/components/browser-pane/BrowserPane.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/browser-pane/BrowserPane.tsx b/src/renderer/src/components/browser-pane/BrowserPane.tsx index 8d151ce9190..a421e727375 100644 --- a/src/renderer/src/components/browser-pane/BrowserPane.tsx +++ b/src/renderer/src/components/browser-pane/BrowserPane.tsx @@ -933,7 +933,11 @@ function BrowserPagePane({ webview.style.width = '100%' webview.style.height = '100%' webview.style.border = 'none' - webview.style.background = 'transparent' + // Why: default to white so sites that don't set an html/body background + // (e.g. httpbin.org/html) don't show through to Orca's dark chrome. Real + // browsers paint the viewport white by default; sites that specify their + // own background (including dark ones) still override this. + webview.style.background = '#ffffff' webviewRegistry.set(browserTab.id, webview) container.appendChild(webview) needsInitialNavigation = true