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 <help@stably.ai>
This commit is contained in:
Jinwoo-H
2026-05-04 20:03:47 -04:00
co-authored by Orca
parent 85b125f6bf
commit 1206e346b9
@@ -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