MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Flickering when disposing WebView control

Open
#650 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description
We have a problem when adding / remoing Tabs in an TabControl - during removing the tab / disposing the webview control it sometimes happens that the WebView2 control is flickering - please see attached video - https://www.screencast.com/t/YYYEXbtwUoI

We use Microsoft.WebView2.FixedVersionRuntime.87.0.664.41.x64 and WebView2 release version 1.0.664.37.

https://www.screencast.com/t/YYYEXbtwUoI

In code we simply do:

    private void button1_Click(object sender, EventArgs e)
    {
        var page = new TabPage("WebView2 Test");
        page.Controls.Add(new WebView2() { Dock = DockStyle.Fill });
        this.tabControl1.TabPages.Add(page);
    }

    private void button2_Click(object sender, EventArgs e)
    {
        var page = this.tabControl1.TabPages[0];
        this.tabControl1.TabPages.Remove(page);
        page.Dispose();
    }

Version
SDK: 1.0.664.37.
Runtime: 87.0.664.41.x64 fixed version
Framework: WinForms
OS: Win10

Repro Steps
See above and video

https://www.screencast.com/t/YYYEXbtwUoI

Additional context

AB#30943503

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

Start with the WinForms reproduction shown in the issue: add WebView2 controls to TabPages, remove the first page, and dispose it using the listed SDK and fixed runtime versions. Investigate the flicker during tab removal and disposal; done means the WebView2 control can be removed and disposed without flickering.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.