You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Initially hidden BrowserWindow with dark background flashes white background when shown #46602
Activity
jorodi commentedon Apr 10, 2025
electronjs-noticeable-background-load.mp4
nikwen commentedon Apr 10, 2025
Did this behavior change appear in v35 on Windows or Linux, too?
I wonder if this is related to #32001 (which regressed in v35 on macOS).
jorodi commentedon Apr 10, 2025
I don't see it happening on Linux. I haven't checked Windows.
codebytere commentedon Apr 10, 2025
Tracked to v35.0.0-alpha.2...v35.0.0-alpha.3 - i would guess 91bb748
cc @michal-pichlinski-openfin
Specifically - it's a result of our logic here:
electron/shell/browser/native_window_mac.mm
Lines 197 to 198 in 85dce12
which results in an initial white paint here:
https://source.chromium.org/chromium/chromium/src/+/main:ui/views/cocoa/native_widget_mac_ns_window_host.mm;l=647-648;drc=0577aa4f99f2f1b2a85ac99d7b129cf87aa104bc;bpv=1;bpt=1