8000 [Bug]: White frames appear when adding BrowserView with already loaded page · Issue #37201 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: White frames appear when adding BrowserView with already loaded page #37201
Closed
@Imperat

Description

@Imperat

Preflight Checklist

Electron Version

20.1.4

What operating system are you using?

macOS

Operating System Version

Ventura 13.2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

In my use case, I need to keep BrowserViews in memory and switch them.
To switch I use removeBrowserView and setBrowserView APIs like this:

    win.removeBrowserView(view1);
    win.setBrowserView(view2);

I expect that this switching will be experienced by users as tab switching in the browser. For example, if you open two tabs
https://www.electronjs.org/ & https://www.electronjs.org/docs/latest/api/app, and will start switching between them you will notice that the website header remains black (for this specific example with electronjs.rg).

In my use case, I need to add BrowserView with an already loaded page to the window. When I do this I am able to notice a white glitch even though I set another color as a background color for the window.
This bug is not reproducible if hardware acceleration is turned off. (app.disableHardwareAcceleration())

Actual Behavior

It works as desired on Windows 11.
On MacOS some white frames appear and make the user's experience less native.

Screen.Recording.2023-02-09.at.3.36.08.pm.mov

Can we get it fixed or give me suggestions on how I can perform a workaround, please?

Testcase Gist URL

https://gist.github.com/0c99927c913ac5971facd861dd656d8b

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0