Skip to content

[Bug]: offscreen rendering doesn't render clicked INPUT SELECT dropdown, or any popups #34095

Closed

Description

@gtalusan

Preflight Checklist

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.

Testcase Gist URL

https://gist.github.com/gtalusan/c0ad56685aeb3b2c1108fbccf6b451b4

Additional Information

No response

Activity

  1. gtalusan commented on May 5, 2022

    @gtalusan
    Author

    [email protected] renders drop downs, but not pop-ups.

  2. gtalusan commented on May 20, 2022

    @gtalusan
    Author

    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.

  3. self-assigned this
    on Aug 2, 2022
  4. github-actions commented on Nov 1, 2022

    @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. gtalusan commented on Nov 1, 2022

    @gtalusan
    Author

    bump

  6. github-actions commented on Feb 1, 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. gtalusan commented on Feb 2, 2023

    @gtalusan
    Author

    bump

  8. 13 remaining items

  9. added
    status/confirmed
    and removed on Feb 20, 2024
  10. witcher112 commented on Feb 20, 2024

    @witcher112
  11. madhanmaaz commented on Jan 14, 2025

    @madhanmaaz
  12. benoitlahoz commented on Apr 29, 2025

    @benoitlahoz
  13. madhanmaaz commented on Jul 9, 2025

    @madhanmaaz
  14. madhanmaaz commented on Jul 15, 2025

    @madhanmaaz
  15. madhanmaaz commented on Jul 18, 2025

    @madhanmaaz
  16. Veiintc commented on Jul 21, 2025

    @Veiintc
  17. reitowo commented on Jul 22, 2025

    @reitowo
    Member

    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

  18. Veiintc commented on Jul 22, 2025

    @Veiintc

    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

    how can I composite this?

  19. reitowo commented on Jul 22, 2025

    @reitowo
    Member

    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.

  20. madhanmaaz commented on Jul 24, 2025

    @madhanmaaz

    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.

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

Metadata

Metadata

Assignees

Labels

18-x-ybug 🪲component/offscreenplatform/linuxstatus/confirmed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions