MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Feature]: iframe like electron <webview>

Open
#5,225 1 comment 1 reaction 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since May 2, 2025.

feature request
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Describe the feature/enhancement you need

I just want to develop the UI interface using React, and I don't want to use WinForm. Meanwhile, I need to embed a browser window on the interface. If using Iframe, there will be security issues. Is there a similar element like Electron's in WebView2? Or can this Iframe be given some attributes to make it become a MainFrame?

UI code

function App() {
  return (
    <>
      <div className='webview'>
        <iframe name='my_site_embedding_frame' src=''></iframe>
      </div>
      <div className='order'>
        <button>Submit order</button>
      </div>
    </>
  )
}
The scenario/use case where you would use this feature

I mainly develop some efficiency tools to assist users in conducting operations conveniently on third-party websites.

How important is this request to you?

Critical. My app's basic functions wouldn't work without it.

Suggested implementation

Currently, most development scenarios require displaying remote web content on the interface. However, the current Iframe has many limitations. I even embedded two WebViews in Winform, one for displaying the UI and the other for displaying the remote content. But it was very troublesome.

What does your app do? Is there a pending deadline for this request?

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.