MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[WinForms] Deinitialization of CoreWebView2?

Open
#588 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

WebView2 is a visual control, that belong to Form and have some layout properties. When user open form, CoreWebView2 is not initialized. When user want to see something from web, we need to init CoreWebView2 - ok. But after user end his work, we need to revert WebView2 to it's original state - not initialized (due to heavy resources usage). Can we something deinit CoreWebView2 without Dispose whole control? Dispose only CoreWebView2?
For now only way I see is remove it from controls, Dispose it, than create new one, add it to controls and apply all layout logic again...

AB#30102318

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.

Research direction

The issue names the WinForms WebView2 control and CoreWebView2, but no repository files, tests, or entry points. Start by investigating the control's initialization and disposal lifecycle; done would require a supported way to return CoreWebView2 to an uninitialized state without disposing the visual control.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.