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
[Bug]: offscreen rendering doesn't render clicked INPUT SELECT dropdown, or any popups #34095
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
18.1.0
What operating system are you using?
Ubuntu
Operating System Version
Ubuntu Jammy
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
I'm expecting INPUT SELECT dropdowns and popup windows to be composited in the offscreen render of the originating window.
Actual Behavior
INPUT SELECTs are not composited in the offscreen render of the main BrowserWindow. For popup windows, adding a paint event listener on the new BrowserWindow emitted to 'browser-window-created' doesn't generate OSR paint events either.
webContents.setWindowOpenHandler overrides the preload.js and forces offscreen=true. The preload.js will pop up an alert box after 5 seconds just to verify overrideBrowserWindowOptions works, but the content is rendered on-screen rather than off.
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!
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!
This is expected. If you use shared texture offscreen, you can gen both frame and popup textures and composite yourself. This actually the same behavior of CEF, and if you take a look at cefclient sample, you'll see a custom D3D11 code to combine them into single texture. So, it is your job to composite them at your own rendering pipeline. cc @nikwen
This is expected. If you use shared texture offscreen, you can gen both frame and popup textures and composite yourself. This actually the same behavior of CEF, and if you take a look at cefclient sample, you'll see a custom D3D11 code to combine them into single texture. So, it is your job to composite them at your own rendering pipeline. cc @nikwen
Native elements like select, context menus, and focus rings are rendered by the OS or GPU compositor, not by Chromium itself. In OSR mode, paint events only include Chromium’s composited content — not these system-drawn popups or outlines.
Activity
gtalusan commentedon May 5, 2022
[email protected] renders drop downs, but not pop-ups.
gtalusan commentedon May 20, 2022
I've added another gist here (hopefully a bit more concise) to illustrate offscreen popups not actually rendering offscreen: https://gist.github.com/06852ae37ed4700aa6612de0c1af80d8
webContents.setWindowOpenHandler overrides the preload.js and forces offscreen=true. The preload.js will pop up an alert box after 5 seconds just to verify overrideBrowserWindowOptions works, but the content is rendered on-screen rather than off.
github-actions commentedon Nov 1, 2022
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!
gtalusan commentedon Nov 1, 2022
bump
github-actions commentedon Feb 1, 2023
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!
gtalusan commentedon Feb 2, 2023
bump
13 remaining items
witcher112 commentedon Feb 20, 2024
madhanmaaz commentedon Jan 14, 2025
benoitlahoz commentedon Apr 29, 2025
madhanmaaz commentedon Jul 9, 2025
madhanmaaz commentedon Jul 15, 2025
madhanmaaz commentedon Jul 18, 2025
Veiintc commentedon Jul 21, 2025
reitowo commentedon Jul 22, 2025
This is expected. If you use shared texture offscreen, you can gen both frame and popup textures and composite yourself. This actually the same behavior of CEF, and if you take a look at cefclient sample, you'll see a custom D3D11 code to combine them into single texture. So, it is your job to composite them at your own rendering pipeline. cc @nikwen
Veiintc commentedon Jul 22, 2025
how can I composite this?
reitowo commentedon Jul 22, 2025
https://github.com/chromiumembedded/cef/blob/master/tests/cefclient/browser/osr_render_handler_win_d3d11.cc
reitowo commentedon Jul 22, 2025
This is actually two problems, the new window created doesn't emit paint event, will probably be fixed by something like e73b2c0
The select, dropdown, etc is not composited when you're using shared texture osr, this is expected. For pixel buffer based osr, I'm not quite sure.
madhanmaaz commentedon Jul 24, 2025
Native elements like select, context menus, and focus rings are rendered by the OS or GPU compositor, not by Chromium itself. In OSR mode, paint events only include Chromium’s composited content — not these system-drawn popups or outlines.