Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
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 BrowserView
s 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