Skip to content

[Bug]: White background on program start for frameless windows #35362

Closed as not planned

Description

@rzhao271

Preflight Checklist

Electron Version

20.0.0

What operating system are you using?

Windows

Operating System Version

Windows 10 Enterprise 21H1

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

The BrowserWindow displays with the background colour given in the options.

Actual Behavior

The BrowserWindow shows up with a white background colour.

Testcase Gist URL

https://gist.github.com/rzhao271/4d6546e62f096e036b777c489e515f32

Additional Information

The goal is to see whether there is a way to set the background colour earlier. One can use ready-to-show, but we'd rather consider other options downstream before using it.

Downstream issue: microsoft/vscode#132339

Activity

  1. changed the title [-][Bug]: White background on program start[/-] [+][Bug]: White background on program start for framed windows[/+] on Aug 19, 2022
  2. changed the title [-][Bug]: White background on program start for framed windows[/-] [+][Bug]: White background on program start for frameless windows[/+] on Sep 13, 2022
  3. rzhao271 commented on Sep 13, 2022

    @rzhao271
    ContributorAuthor

    I changed the issue details and the repro gist.
    The issue repros when one sets frame and show to false with a non-white background colour, and then calls maximize() on that BrowserWindow.

    The issue repros with the latest v19 and v21 versions in Fiddle.

  4. github-actions commented on Jan 10, 2023

    @github-actions
    Contributor

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  5. bpasero commented on Jan 10, 2023

    @bpasero
    Contributor

    Keep

  6. github-actions commented on Apr 12, 2023

    @github-actions
    Contributor

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  7. 16 remaining items

  8. Nokel81 commented on Apr 16, 2025

    @Nokel81

    This is still an issue on macOS too, though we didn't observe it on v33 we are observing it on v35

  9. codebytere commented on Apr 16, 2025

    @codebytere
    Member

    @Nokel81 do you have a repro? i don't see that on macOS with the one provided above.

  10. Nokel81 commented on Apr 17, 2025

    @Nokel81

    @codebytere I have created https://github.com/Nokel81/electron-white-flash-bug which shows the bug.

    You need to:

    • run npm ci
    • run npm run build:app
    • run ./dist/mac-arm64/Example.app/Contents/MacOS/Example
    • Notice that the window flashes white before displaying
  11. Frulfump commented on Jul 2, 2025

    @Frulfump

    This still repros with Electron 35.6.0 in VS Code Insiders 1.102.0-insider (and stable 1.101.2)

    Version: 1.102.0-insider (user setup)
    Commit: 6e855004c713d9c2610091ab7eb68b677830087f
    Date: 2025-07-02T05:06:38.879Z
    Electron: 35.6.0
    ElectronBuildId: 11847422
    Chromium: 134.0.6998.205
    Node.js: 22.15.1
    V8: 13.4.114.21-electron.0
    OS: Windows_NT x64 10.0.19045

  12. electron-issue-triage commented on Oct 1, 2025

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  13. Frulfump commented on Oct 1, 2025

    @Frulfump

    Still an issue, repros with Electron 37.5.1 in VS Code Insiders 1.105.0-insider (not able to check stable atm)

    Version: 1.105.0-insider (user setup)
    Commit: 6e60e679fc6b6a512edbed9a750d7c5811595861
    Date: 2025-10-01T05:02:28.879Z
    Electron: 37.5.1
    ElectronBuildId: 12409799
    Chromium: 138.0.7204.251
    Node.js: 22.19.0
    V8: 13.8.258.32-electron.0
    OS: Windows_NT x64 10.0.19045

  14. Frulfump commented on Dec 19, 2025

    @Frulfump

    This no longer repros for me but I'm now on Windows 11 (25H2) as opposed to Windows 10 for the previous reported instances from me.

    Version: 1.107.0 (user setup)
    Commit: 618725e67565b290ba4da6fe2d29f8fa1d4e3622
    Date: 2025-12-10T07:43:47.883Z
    Electron: 39.2.3
    ElectronBuildId: 12895514
    Chromium: 142.0.7444.175
    Node.js: 22.21.1
    V8: 14.2.231.21-electron.0
    OS: Windows_NT x64 10.0.26200
    
  15. electron-issue-triage commented on Mar 20, 2026

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  16. electron-issue-triage commented on Apr 19, 2026

    @electron-issue-triage

    This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    35-x-y36-x-ybug 🪲component/BrowserWindowhas-repro-gistplatform/windowsstale

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions