Skip to content

rfc: independent WebContents lifetime for DOM embedding - #34

Open
mrchaofan wants to merge 2 commits into
electron:mainfrom
mrchaofan:rfc/independent-dom-web-contents
Open

mrchaofan wants to merge 2 commits into
electron:mainfrom
mrchaofan:rfc/independent-dom-web-contents

Conversation

@mrchaofan

@mrchaofan mrchaofan commented Oct 23, 2026 •

Copy link
Copy Markdown

Separate the lifetime of a DOM-embedded WebContents from its display element, so a live page can be detached and reattached across DOM slots and windows without being recreated.

The RFC focuses on the existing webview lifecycle coupling, the stacking and input-routing constraints of composing native WebContentsViews with HTML, and the iframe embedding mechanism as a candidate for independent ownership. It specifies lifecycle, validation, security and cleanup requirements without prescribing a new tag name.

Rendered proposal: https://github.com/mrchaofan/rfcs/blob/rfc/independent-dom-web-contents/text/0000-independent-dom-web-contents.md

Tracking issue: electron/electron#55248

Experimental reference: electron/electron#55135

AI assistance: OpenAI Codex assisted with drafting and translation; the author reviewed and revised the proposal before submission.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant